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

Enhance the rules deployment confirmation message #556

Closed
dorschs57 opened this issue Jul 26, 2022 · 3 comments · Fixed by #849
Closed

Enhance the rules deployment confirmation message #556

dorschs57 opened this issue Jul 26, 2022 · 3 comments · Fixed by #849
Assignees
Labels
enhancement New feature or request Needs Wireframe GUI design and mockup needed ui Work related to the UI
Milestone

Comments

@dorschs57
Copy link
Collaborator

Right now the on the deployment confirmation dialog, the user only gets a count of additions and deletions to the rules set. It would be nice for them to be able to view the full diff of the file. One possible option would be to add a button in the treeview row that currently displays the counts so they could popup a new dialog that displays the full diff text. This might also be part of the larger effort of converting the confirmation dialog over to a full deployment review screen like is mocked up in the wireframes.

@dorschs57 dorschs57 added this to the 8 milestone Jul 26, 2022
@dorschs57 dorschs57 added enhancement New feature or request ui Work related to the UI labels Jul 27, 2022
dorschs57 added a commit that referenced this issue Jul 27, 2022
Adds a simple summary of number of additions and deletions to the rules text into the table view of the Confirm Deployment dialog. Future issue #556 will provide a more detailed view of rule text changes before deployment.
@jw3 jw3 added the Needs Wireframe GUI design and mockup needed label Sep 1, 2022
@jw3 jw3 modified the milestones: v1.0, v1.1 Oct 31, 2022
@egbicker egbicker self-assigned this Feb 28, 2023
@egbicker
Copy link
Contributor

Found issue #847

@egbicker
Copy link
Contributor

@jw3 I am seeing an issue with the rules_difference method. If you delete the last rule, that rule will show up as both an addition and a removal.

@jw3
Copy link
Member

jw3 commented Apr 13, 2023

I am seeing an issue with the rules_difference method. If you delete the last rule, that rule will show up as both an addition and a removal.

There is probably a new-line char that you are not taking into account.

If the diff sees lhs of

foo
bar

and you diff against rhs

foo

Your results will vary depending on whether you have the nl on rhs. If the nl is gone, then its going to report the entire line as a removal and addition of the nl-less version.

See if that lines up with what you are seeing.

Perhaps we should strip nl chars in some cases to prevent unexpected behavior... I dont have time to consider that right now, but if you come up with a scheme create a new issue that describes stripping behavior that would reduce the surprise factor here.

@egbicker egbicker linked a pull request Apr 20, 2023 that will close this issue
@jw3 jw3 closed this as completed in #849 Apr 28, 2023
jw3 pushed a commit that referenced this issue Apr 28, 2023
Adds an option to display a full difference in the rules changeset
before deployment.

Closes #556
@jw3 jw3 mentioned this issue Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs Wireframe GUI design and mockup needed ui Work related to the UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants