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

Add Clear Software Updates settings Saga #2346

Merged
merged 3 commits into from
Feb 20, 2024
Merged

Conversation

jamie-suse
Copy link
Contributor

Description

Adds a Redux Saga to allow the user to clear Software Updates settings.

How was this tested?

Added tests for the Saga.

@jamie-suse jamie-suse added enhancement New feature or request javascript Pull requests that update Javascript code labels Feb 20, 2024
@jamie-suse jamie-suse self-assigned this Feb 20, 2024
@jamie-suse jamie-suse marked this pull request as ready for review February 20, 2024 14:32
Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

Just a tiny change request

Comment on lines 74 to 75
const errors = get(error, ['response', 'data', 'errors'], []);
yield put(setSoftwareUpdatesSettingsErrors(errors));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there's no need to set errors, this is meant for validation errors in other sagas

Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

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

Besides what Alessio shared, LGTM

Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

go

@jamie-suse jamie-suse merged commit e028685 into main Feb 20, 2024
24 checks passed
@jamie-suse jamie-suse deleted the clear-settings-saga branch February 20, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code
Development

Successfully merging this pull request may close these issues.

None yet

3 participants