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

Fixed disappearing notice Cloudflare #5979

Merged
merged 3 commits into from Jun 19, 2023
Merged

Conversation

CrochetFeve0251
Copy link
Contributor

@CrochetFeve0251 CrochetFeve0251 commented Jun 15, 2023

Description

Fix an issue with the error disappearing if we save the page without changing any value.

For that we fixed a couple of errors and change the check for the error to the pre_update filter.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Locally

Checklist:

Please delete the options that are not relevant.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@CrochetFeve0251 CrochetFeve0251 changed the title Fixed disappearing notice Fixed disappearing notice Cloudflare Jun 15, 2023
@CrochetFeve0251 CrochetFeve0251 self-assigned this Jun 15, 2023
@CrochetFeve0251 CrochetFeve0251 added type: bug Indicates an unexpected problem or unintended behavior module: cloudflare labels Jun 15, 2023
@CrochetFeve0251 CrochetFeve0251 requested a review from a team June 15, 2023 11:56
inc/Addon/Cloudflare/Subscriber.php Outdated Show resolved Hide resolved
inc/Addon/Cloudflare/Subscriber.php Outdated Show resolved Hide resolved
@Tabrisrp Tabrisrp marked this pull request as ready for review June 15, 2023 19:26
@CrochetFeve0251 CrochetFeve0251 requested a review from a team June 16, 2023 06:45
@Mai-Saad Mai-Saad self-requested a review June 16, 2023 11:44
@piotrbak piotrbak added this to the 3.14.1 milestone Jun 18, 2023
@Mai-Saad
Copy link

@CrochetFeve0251 Thanks for the update. Saving the settings while the error is displayed won't hide the error. However, please find exploratory test notes below:

  • Refreshing the page while the error is displayed, will hide the error. => Shouldn't the error still be displayed here?
  • If we have 3.14, where the error was hidden due to the bug there, then we update to the PR, shouldn't the error be displayed? (currently, it is not)

@CrochetFeve0251
Copy link
Contributor Author

@CrochetFeve0251 Thanks for the update. Saving the settings while the error is displayed won't hide the error. However, please find exploratory test notes below:

  • Refreshing the page while the error is displayed, will hide the error. => Shouldn't the error still be displayed here?
  • If we have 3.14, where the error was hidden due to the bug there, then we update to the PR, shouldn't the error be displayed? (currently, it is not)

@Mai-Saad the error is displayed when we save so it is normal if we don't save anything.
Are we supposed to display an error even nothing is currently saved?

@Mai-Saad
Copy link

@CrochetFeve0251 As per discussion with @piotrbak nothing is needed here and fine as is.

Copy link

@Mai-Saad Mai-Saad left a comment

Choose a reason for hiding this comment

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

testrail-report-494.pdf
Working as expected with the following note (agreed to remain as is)
The 1st time we save settings while having wrong CF addon data + CF plugin is on and authenticated => validation error is displayed and any other save settings after that won't show the error

@Mai-Saad Mai-Saad added this pull request to the merge queue Jun 19, 2023
Merged via the queue into develop with commit 76031e9 Jun 19, 2023
8 checks passed
@Mai-Saad Mai-Saad deleted the bug/cf-fix-disapearing-notice branch June 19, 2023 13:45
@engahmeds3ed engahmeds3ed mentioned this pull request Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: cloudflare type: bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants