-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add static data support to bundler #179
Conversation
8d95079
to
08b1d8e
Compare
I also have no idea which beamlines belong to which group so the sample admin.json is very incomplete |
08b1d8e
to
c63aa93
Compare
c63aa93
to
1bda715
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable, think I'd rather pass a glob in than have it select every json in a directory
* Unbox CLI args * Include static data in revision info * Fail on fs errors when reading static data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just a couple little bits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
These are the most common beamlines for visits of users with the respective admin permissions.
They are used as strings so storing them as strings makes more sense. It also makes the tracing sane again as debug format for patterns is incredibly verbose. Strings are still validated by the CLI.
The chart lints are failing, presumably because adding the static data counts as a change. Should the data be added in its own PR? |
Yeah, probably add it as it's own thing - or as part of #186 |
This can be added at a later time and is not required for static data support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proof of concept for adding static file support to bundler service. Any files named
*.json
in the optional static_data_directory will be included in the generated bundle under a name matching the file name.eg, using the new
static
directory, the bundle structure is nowStatic directory location subject to bikeshedding.