Skip to content

feat: adds initial API files for notices endpoint #2093

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

Merged
merged 12 commits into from
Feb 2, 2023
Merged

Conversation

Golodhros
Copy link
Member

@Golodhros Golodhros commented Jan 31, 2023

Summary of Changes

Adds reducer, actions, sagas and endpoints for the WIP notices endpoint
Creates STATUS_CODES constants for all status codes
Updated jest.config to not use testDataBuilder.ts files on test coverage report

Tests

Added tests

Related to the stretch goals on https://github.com/amundsen-io/rfcs/blob/master/rfcs/029-resource-notices.md

chore: adds basic api file and test

Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Copy link
Contributor

@kristenarmes kristenarmes left a comment

Choose a reason for hiding this comment

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

LGTM so far, thanks!

@@ -207,10 +207,19 @@ export enum NoticeSeverity {
WARNING = 'warning',
ALERT = 'alert',
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense for the highest level to be called 'error' instead of 'alert'? not sure if 'alert' conveys to me that it would be a higher severity over a warning

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good point. However, that would be a breaking change at this moment (this is from the currently working notices feature)

@Golodhros Golodhros merged commit ed552d1 into main Feb 2, 2023
@Golodhros Golodhros deleted the mi-notices-api branch February 2, 2023 00:35
B-T-D pushed a commit to B-T-D/amundsen that referenced this pull request Mar 29, 2023
* chore: adds fixture data for notices API
chore: adds basic api file and test

Signed-off-by: Marcos Iglesias <[email protected]>

* chore: normalizes initialState for tags and badges

Signed-off-by: Marcos Iglesias <[email protected]>

* feat: adds notices sagas and related tests

Signed-off-by: Marcos Iglesias <[email protected]>

* chore: adds action tests

Signed-off-by: Marcos Iglesias <[email protected]>

* chore: adds reducer and tests

Signed-off-by: Marcos Iglesias <[email protected]>

* chore: updated rootReducer and rootSaga

Signed-off-by: Marcos Iglesias <[email protected]>

* chore: adds STATUS_CODES constants

Signed-off-by: Marcos Iglesias <[email protected]>

* chore: rolls out STATUS_CODES constants

Signed-off-by: Marcos Iglesias <[email protected]>

* chore: adds copyright messages

Signed-off-by: Marcos Iglesias <[email protected]>

* fix: fixes type issues

Signed-off-by: Marcos Iglesias <[email protected]>

* chore: using other data builder options to increase coverage

Signed-off-by: Marcos Iglesias <[email protected]>

* chore: move into testDataBuilder file and exclude from test coverage

Signed-off-by: Marcos Iglesias <[email protected]>

---------

Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Ben Dye <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:frontend From the Frontend folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants