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

Ability to export rules as YAML #214

Merged

Conversation

gerrycampion
Copy link
Collaborator

@gerrycampion gerrycampion commented Mar 25, 2024

Code is live here: https://icy-flower-095494b10-dev.centralus.azurestaticapps.net/
(Or run locally)
To test,

  • in the top left corner, click on the down arrow button
  • Click on Export Rules as YAML

You can view the yaml files that are downloaded. They should match the yaml of the currently filtered rules

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-flower-095494b10-214.centralus.azurestaticapps.net

@drewcdisc drewcdisc changed the title 83 there needs to be a way to run unpublished rules Ability to export rules as YAML Mar 27, 2024
Copy link
Contributor

@ASL-rmarshall ASL-rmarshall left a comment

Choose a reason for hiding this comment

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

I've completed my review and I'm happy to approve. I checked the following:

  • Spot checked downloaded YAML vs manually copied YAML for some rules, with no discrepancies found.
  • Confirmed that export as YAML works as expected for different types of filtering (column header, search bar)
  • Confirmed that export of debugging artifacts and rules as CSV still work as expected.
  • Performed high-level code review, with nothing unexpected seen.

The only thing that caught my eye is that the progress icon flashes to red periodically when downloading a large number of rules. I assume this may have something to do with pagination. It also happens if you close the progress indicator by click on the X. However, it doesn't seem to affect the export functionality, so I am still happy to approve and am not requesting a change.

Copy link
Collaborator

@SFJohnson24 SFJohnson24 left a comment

Choose a reason for hiding this comment

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

I am also happy to approve.

  • YAML and CSV exports working as intended with no discrepancies with new export functionality vs. rules library yaml.
  • Debugging artifacts also works as intended without error.
  • passes high level code review

I too got the status bar flashing red issue that Richard observed when using chrome and downloading a large amount of rules. Firefox freezes briefly upon making the request for an unfiltered download of a large amount of rules until the request is completed. Both do process the request so I agree with Richard that shouldn't be an issue.

@gerrycampion
Copy link
Collaborator Author

@ASL-rmarshall @SFJohnson24
Yes, the status bar thing is a known more general issue. I created a ticket here for it: #215

@gerrycampion gerrycampion merged commit 7765c0f into main Mar 28, 2024
3 checks passed
@gerrycampion gerrycampion deleted the 83-there-needs-to-be-a-way-to-run-unpublished-rules branch March 28, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants