Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GT-2095 - Support creating & managing collections Tool Groups #695

Closed
wants to merge 11 commits into from

Conversation

dr-bizz
Copy link
Contributor

@dr-bizz dr-bizz commented Oct 23, 2023

Description

https://jira.cru.org/browse/GT-2095
Create ToolGroup functionality, so the admin can create Tool groups, assign countries, Languages and Praxis to them and then create relationships between ToolGroups and Tools.

Changes

  • Created a new Tool Groups page
  • Using npm package countries-list to get Countries names and ISO code
  • Loading in Tool Groups effectively by only loading data which is necessary at that time.
  • Created reusable inputs to make development easier.
  • Created a component which handles Country, Language and Praxis rules.
  • Created component to handle Tools
  • Create / edit Tool Groups
  • Created Langauge BCP47 service
  • Created Tool Group service to handle all Tool Group communication to server
  • Updated TS to compile to ES 2017

@dr-bizz dr-bizz changed the title Gt 2095 tool groups GT 2095 tool groups Oct 23, 2023
@dr-bizz dr-bizz changed the title GT 2095 tool groups GT-2095 - Support creating & managing collections Tool Groups Oct 23, 2023
@dr-bizz dr-bizz force-pushed the GT-2095-Tool-Groups branch from d69ace7 to a8a325b Compare October 23, 2023 19:04
@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Attention: Patch coverage is 81.84615% with 118 lines in your changes are missing coverage. Please review.

Project coverage is 70.79%. Comparing base (de55548) to head (b687374).

❗ Current head b687374 differs from pull request most recent head 3255402. Consider uploading reports for the commit 3255402 to get more accurate results

Files Patch % Lines
...t-tool-group/abstract-edit-tool-group.component.ts 53.84% 26 Missing and 4 partials ⚠️
...p/update-tool-group/update-tool-group.component.ts 73.19% 10 Missing and 16 partials ⚠️
...e-reuseable/tool-group-rule-reuseable.component.ts 79.72% 10 Missing and 5 partials ⚠️
...l-reuseable/tool-group-tool-reuseable.component.ts 57.69% 10 Missing and 1 partial ⚠️
.../edit-tool-group-rule/tool-group-rule.component.ts 82.75% 8 Missing and 2 partials ⚠️
...ol-group-resource/tool-group-resource.component.ts 90.14% 5 Missing and 2 partials ⚠️
.../app/components/tool-group/tool-group.component.ts 92.50% 2 Missing and 4 partials ⚠️
...pp/components/tool-groups/tool-groups.component.ts 82.35% 6 Missing ⚠️
src/app/service/tool-group/tool-group.service.ts 93.90% 2 Missing and 3 partials ⚠️
...p/create-tool-group/create-tool-group.component.ts 94.28% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #695      +/-   ##
==========================================
+ Coverage   65.77%   70.79%   +5.01%     
==========================================
  Files          60       71      +11     
  Lines        1607     2061     +454     
  Branches      133      186      +53     
==========================================
+ Hits         1057     1459     +402     
- Misses        524      551      +27     
- Partials       26       51      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stage-branch-merger
Copy link

I see you added the "On Staging" label, I'll get this merged to the staging branch!

@frett
Copy link
Contributor

frett commented Oct 24, 2023

Suggestion Weight should be a float and not a boolean.

Screenshot 2023-10-24 at 3 26 04 PM

@dr-bizz
Copy link
Contributor Author

dr-bizz commented Oct 25, 2023

I'm unsure how I made Suggestion Weight a boolean, I must have been on auto pilot and skimmed over it

@dr-bizz dr-bizz force-pushed the GT-2095-Tool-Groups branch from 9283b9c to 081c141 Compare October 31, 2023 17:38
@dr-bizz dr-bizz requested a review from frett October 31, 2023 17:38
@dr-bizz dr-bizz marked this pull request as ready for review November 1, 2023 14:34
@dr-bizz dr-bizz requested a review from frett November 20, 2023 15:59
@dr-bizz dr-bizz requested a review from frett December 1, 2023 17:24
Copy link
Contributor

@frett frett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the slow review, I'm not aware of any other outstanding issues unless the QA team raises anything

Copy link

Merge conflict attempting to merge this into staging. Please fix manually.

2 similar comments
Copy link

Merge conflict attempting to merge this into staging. Please fix manually.

Copy link

Merge conflict attempting to merge this into staging. Please fix manually.

@dr-bizz dr-bizz force-pushed the GT-2095-Tool-Groups branch from 4971b5b to 4880f37 Compare December 8, 2023 14:33
…assign countries, Languages and Praxis to them and then create relationships between ToolGroups and Tools.

Only loading minimal data whe page loads. Load all Tool Group data when user selects Tool Group
Created Service to handle all Tool Groups requests
Add reuseable components to make mantaining simplier.
@dr-bizz dr-bizz force-pushed the GT-2095-Tool-Groups branch from 4880f37 to 95e4203 Compare December 8, 2023 20:32
Copy link

Merge conflict attempting to merge this into staging. Please fix manually.

Also fixed the confusing hasMadeChanges and fixed error with praxis in that function.
…it no longer tries to refetch the deleted item.
>{{ translation.version }} | Draft</span
>
<span class="badge badge-success" *ngIf="translation.is_published"
<span class="badge badge-success" *ngIf="translation.is_published && !translation['publishing-errors']"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in theory if it's published it shouldn't actually have a publishing-error

Copy link
Contributor Author

@dr-bizz dr-bizz Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed this to the wrong PR, so I'm going to remove it and add it to the new publishing PR #700

@dr-bizz
Copy link
Contributor Author

dr-bizz commented Nov 5, 2024

Closing this task as God Tools might now use this functionality.

@dr-bizz dr-bizz closed this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants