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

Allow prenight data files to be set on command line even if arbitrary… #36

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

ehneilsen
Copy link
Collaborator

… URLs are not allowed

Copy link
Member

@rhiannonlynne rhiannonlynne left a comment

Choose a reason for hiding this comment

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

Might need to clarify some documentation, depending on if my interpretation of why these changes were necessary/what they allow is correct.

if data_arg in kwargs:
specified_data_files[data_arg] = str(file_path)

prenight = RestrictedInputPrenight(data_dir=data_dir, **specified_data_files)
Copy link
Member

Choose a reason for hiding this comment

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

Oh interesting .. so I think this means that if you do not allow arbitrary data urls (which I thought meant uploading files only, rather than files from the filesystem), that you have to pre-specify which data directories should be allowed?
So the choices are -- data files from paths that are specified at startup vs. any data file + URL uploads?
(I'm not sure if that would be clear to other people, but wasn't clear to me, if that's how it works)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that's right.

@ehneilsen ehneilsen merged commit 284673b into main Oct 9, 2023
4 checks passed
@ehneilsen ehneilsen deleted the tickets/PRENIGHT-3841 branch October 9, 2023 21:57
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.

2 participants