-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure fields get marked as dirty if they change. Story #122
I overrode the getter and setter methods for the ordered fields to keep track of their order in secondary fields, but that caused a problem. Even though those fields appeared to be correct in the UI, I noticed that the `description` and `ordered_descriptions` fields were out of sync in the fedora console. The overrides to the getters and setters messed up the logic that determines whether or not a field is marked dirty. I wrote a spec to make sure that both the original field and its secondary ordering field will be marked dirty if the field is updated, and then moved the `super` call to the top of the setter method, which solves the problem with the logic for dirtiness.
- Loading branch information
Showing
5 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters