Closed
Bug 1482862
Opened 7 years ago
Closed 7 years ago
Hide tutorial and pontoon-intro from dashboards
Categories
(Webtools Graveyard :: Pontoon, enhancement, P2)
Webtools Graveyard
Pontoon
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.
Comment 1•7 years ago
|
||
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
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
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.
Comment 4•7 years ago
|
||
(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
Updated•4 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•