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

#7874 Add support for group attributes #7875

Merged
merged 23 commits into from
Dec 15, 2022

Conversation

offtherailz
Copy link
Member

@offtherailz offtherailz commented Feb 18, 2022

Description

This PR provides support for group attribute management. By default the tab is hidden (we can decide to add one notes attribute, just to test the functionality).

In draft because it requires :

  • Unit tests
  • Support on back-end. @taba90 is going to provide it. Issue on geostore TBD.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

No group attribute support

What is the new behavior?

closes #7874
closes https://github.com/geosolutions-it/npa-cgg/issues/279

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

For testing:

as admin user, when open "account management" and browse groups, you will be able to see a new tab for groups, where to see/edit the user group attributes. By default I added a "notes" attribute for testing.
You can try to create a group, then edit the group, change the "notes" attribute, try to save and so on.

@offtherailz offtherailz added this to the 2022.01.00 milestone Feb 22, 2022
@tdipisa
Copy link
Member

tdipisa commented Mar 2, 2022

@offtherailz @taba90 moving to next major. We will include this on MS master as soon as also GeoStore master will be updated accordingly.

@tdipisa tdipisa removed this from the 2022.01.00 milestone Mar 2, 2022
@tdipisa tdipisa added Blocked and removed Blocked labels May 19, 2022
@tdipisa tdipisa added this to the 2023.01.00 milestone Oct 19, 2022
@offtherailz
Copy link
Member Author

This is the PR to merge on GeoStore to make this PR working
geosolutions-it/geostore#278

@offtherailz offtherailz marked this pull request as ready for review December 14, 2022 16:37
Copy link
Contributor

@MV88 MV88 left a comment

Choose a reason for hiding this comment

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

a few changes here and there

the rest is good

docs/developer-guide/mapstore-migration-guide.md Outdated Show resolved Hide resolved
docs/developer-guide/mapstore-migration-guide.md Outdated Show resolved Hide resolved
}));
});
useEffect(() => {
loadOptions().then(setOptions);
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens if an error occurs in here?
do we have to handle error somehow?

Copy link
Member Author

Choose a reason for hiding this comment

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

no options are show. I think it is acceptable (I don't think react-select provides sufficient api for error show).

web/client/components/manager/users/UserDialog.jsx Outdated Show resolved Hide resolved
web/client/plugins/manager/GroupManager.jsx Show resolved Hide resolved
web/client/plugins/manager/GroupManager.jsx Outdated Show resolved Hide resolved
Co-authored-by: Matteo V. <matteo.velludini@geosolutionsgroup.com>
@offtherailz offtherailz merged commit f5b346c into geosolutions-it:master Dec 15, 2022
@offtherailz
Copy link
Member Author

@ElenaGallo, could you please test this on DEV ? Thank you

as admin user you will be able to see attributes tab, with a notes attribute. You can test by creating a new group saving its attributes and so on.

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.

Support for usergroup attributes
3 participants