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

Adds GET products/all for privileged users #237

Merged
merged 4 commits into from
Dec 12, 2023
Merged

Conversation

A-Guldborg
Copy link
Contributor

@A-Guldborg A-Guldborg commented Dec 7, 2023

The API adds the endpoint GET /api/v2/products/all, which returns all products, regardless of usergroup or visibility.

This endpoint will be used for the product management frontend in AnalogIO/shifty-webapp#20, discussed in #217 (and slack).

This endpoint is only accessible for users with Board privileges and
will allow board members to manage the visibilty of products or products
that they otherwise don't have access to themselves in the app.


Some weird merge conflicts arised on #232 after #234 was made. Probably due to me branching out from the wrong branch initially. Here is a new pull request instead :)

@ghost
Copy link

ghost commented Dec 7, 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
Member

@marfavi marfavi left a comment

Choose a reason for hiding this comment

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

Small comments

Copy link
Member

@marfavi marfavi left a comment

Choose a reason for hiding this comment

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

Rename your PR title as well :)

@A-Guldborg A-Guldborg changed the title Feature/get all products Adds GET products/all for privileged users Dec 12, 2023
@A-Guldborg A-Guldborg requested a review from marfavi December 12, 2023 10:05
@marfavi marfavi enabled auto-merge (squash) December 12, 2023 10:23
Copy link
Member

@marfavi marfavi left a comment

Choose a reason for hiding this comment

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

🚀

Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

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

50.0% 50.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@marfavi marfavi merged commit ee7d26c into main Dec 12, 2023
@marfavi marfavi deleted the feature/get-all-products branch December 12, 2023 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants