Closed Bug 1482862 Opened 7 years ago Closed 7 years ago

Hide tutorial and pontoon-intro from dashboards

Categories

(Webtools Graveyard :: Pontoon, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vishalcr7, Assigned: vishalcr7, Mentored)

Details

Attachments

(1 file)

Hide the projects "tutorial" and "pontoon intro" from the dashboards and make them accessible through the links on the New Homepage. We also need to keep these projects out of stats calculation.
We need to do the following: 1. Create the "system_project" flag in the Project model. 2. Exclude system projects, at least from the following views: - Projects page (/projects/) - Projets tab on the Team page (e.g. /fr/) - Projects list in the Permissions tab (e.g. /fr/permissions/) 3. Exclude system projects from statistics, but only for the Locale model. 4. Add a data migration to add "system_project" flag to the "pontoon-intro" project. 5. (Matjaž) Update #1053 to add "system_project" flag to the "tutorial" project and change Locale stats calculation.
Status: NEW → ASSIGNED
Priority: -- → P2
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/ef9484bc4dc65ee16b36ddf62c808bce4ecbc164 Bug 1482862: Hide system projects from dashboards (#1057) This will allows us to hide the `tutorial` and `pontoon-intro` from dashboards. Details: * Add `system_project` field to the Project model. * Add `visible` function to Project, Locale and ProjectLocale models that excludes system projects from available instances. * Exclude system projects from calculating, adjusting and aggregating stats. * Exclude system projects from /projects page, Project tab (count and list) of Team page and projects list in the Permissions tab. * Exclude locales with system projects only from /teams page and show 404 instead of their team page. * Add data migration to set pontoon-intro as system project and exclude it from Locale stats.
(In reply to Matjaz Horvat [:mathjazz] from comment #1) > 5. (Matjaž) Update #1053 to add "system_project" flag to the "tutorial" > project and change Locale stats calculation. Fixed: https://github.com/mozilla/pontoon/pull/1053/commits/cd8f20e2758bab349dc9bbe1bc46178edb8dc263
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: