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

Fix spurious auto-save #3234

Merged
merged 2 commits into from
Oct 6, 2020
Merged

Fix spurious auto-save #3234

merged 2 commits into from
Oct 6, 2020

Conversation

gjvoosten
Copy link
Collaborator

When editing a report without sensitive information text, the report would be auto-saved even when no changes were made, because the sensitive information text would be changed from null to the empty string "".
This change keeps the text at null in this case.

User changes

  • none

Super User changes

  • none

Admin changes

  • none

System admin changes

  • none
  • anet.yml needs change
  • db needs migration
  • documentation has changed
  • graphql schema has changed

Checklist

  • Described the user behavior in PR body
  • Referenced/updated all related issues
  • commits follow a repo#issue: Title title format and these 7 rules
  • commits have a clean history, otherwise PR may be squash-merged
  • Added and/or updated unit tests
  • Added and/or updated e2e tests
  • Added and/or updated data migrations
  • Updated documentation
  • Resolved all build errors and warnings
  • Opened debt issues for anything not resolved here

When editing a report without sensitive information text, the report would be auto-saved even when no changes were made,
because the sensitive information text would be changed from `null` to the empty string `""`.
This change keeps the text at `null` in this case.
Inside the form, set the auto-save settings as the first thing,
so the change of auto-saving out-of-date values is slightly reduced.
Also simplify the assignment.
@gjvoosten gjvoosten added the bug label Oct 6, 2020
@gjvoosten gjvoosten changed the title Fix spurious autosave Fix spurious auto-save Oct 6, 2020
@VassilIordanov VassilIordanov merged commit e4f96a1 into candidate Oct 6, 2020
@VassilIordanov VassilIordanov deleted the fix-spurious-autosave branch October 6, 2020 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants