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

Export & import a NOFO as JSON (for admins) #24

Open
4 tasks
pcraig3 opened this issue Oct 30, 2024 · 0 comments
Open
4 tasks

Export & import a NOFO as JSON (for admins) #24

pcraig3 opened this issue Oct 30, 2024 · 0 comments
Assignees

Comments

@pcraig3
Copy link
Collaborator

pcraig3 commented Oct 30, 2024

Summary

There's no easy way to export an individual NOFO object or to import one (other than using a Word document).

Exporting a NOFO from prod and then importing locally would make debugging much easier. It should only be available for superadmin users, (not just anyone with a NOFO builder account). It would make sense if this was something we could do through the admin UI (/admin), not the regular UI (that uses USWDS).

Probably the best would be to export it as a JSON file to set us up for a future where the NOFO Builder has an API as well. In our future API, we probably don't want every data element, but for admin exports we definitely do.

Note: Disregard any of the audit logs that come with the NOFO, as we typically don't use those for anything.

This story requires:

  • Create a GET route to export a NOFO
    • Only available to superusers
  • Create a POST route to import a NOFO
    • Only available to superusers
@theresaanna theresaanna self-assigned this Oct 30, 2024
@pcraig3 pcraig3 changed the title Export & import a NOFO (for admins) Export & import a NOFO as JSON (for admins) Nov 12, 2024
@pcraig3 pcraig3 self-assigned this Nov 12, 2024
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

No branches or pull requests

2 participants