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

Expose usergroups on getproducts #231

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Conversation

A-Guldborg
Copy link
Contributor

The MapProductToDto in the productscontroller was missing one line that converts the user groups on a product to usergroups on a ProductResponse.

This allows a frontend to actually see the usergroups on a product.

@A-Guldborg A-Guldborg added bug Verified bug api-v2 Related to new API version 2 labels Nov 30, 2023
@ghost
Copy link

ghost commented Nov 30, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

Copy link

sonarcloud bot commented Nov 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@A-Guldborg A-Guldborg merged commit 0789c28 into develop Nov 30, 2023
12 checks passed
@A-Guldborg A-Guldborg deleted the fix-set-product-user-groups branch November 30, 2023 18:26
duckth added a commit that referenced this pull request Dec 7, 2023
* add a patch endpoint to update a user group of an account

* a fix in xml comments

* format code

* Exposes setting product user groups to API

* fix Jonas comments

* authorize only board for the patch endpoint

* uncomment the board authorization line

* format code

* Update documentation examples

* Remove obsolete call to get user groups of product

* change access to endpoint

* Test update product user groups

* Removes second call to DB to update user groups

* Removes redundant database call

* Small fixes to decrease unnecessary code

* Remove code smells

* Fix last code smell

* Add productusergroups to get products (#231)

---------

Co-authored-by: Hubert <hubert.wojcik002@gmail.com>
Co-authored-by: A-Guldborg <aguh@itu.dk>
Co-authored-by: Jonas Anker Rasmussen <jonasanker@gmail.com>
Co-authored-by: A-Guldborg <95026056+A-Guldborg@users.noreply.github.com>
Co-authored-by: Hubert Wójcik <81220416+HubertWojcik10@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-v2 Related to new API version 2 bug Verified bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants