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

Handle main_dir in staging #35

Merged
merged 1 commit into from
Apr 14, 2022
Merged

Handle main_dir in staging #35

merged 1 commit into from
Apr 14, 2022

Conversation

ravwojdyla
Copy link
Contributor

Re: #32

@ravwojdyla ravwojdyla force-pushed the rav-meta-artifact branch 2 times, most recently from b34eac3 to 2fb8da1 Compare April 14, 2022 11:48
@ravwojdyla ravwojdyla force-pushed the rav-handle-main-dir branch 2 times, most recently from dac38e4 to 84b1af7 Compare April 14, 2022 12:03
@ravwojdyla ravwojdyla force-pushed the rav-handle-main-dir branch from 84b1af7 to c76e616 Compare April 14, 2022 12:06
@ravwojdyla ravwojdyla force-pushed the rav-handle-main-dir branch from c76e616 to 7344d16 Compare April 14, 2022 12:34
@ravwojdyla ravwojdyla requested a review from dhimmel April 14, 2022 12:39
Comment on lines +76 to +78
if self._file_prefix is not None:
return self._file_prefix
elif self.files_dir:
Copy link
Member

Choose a reason for hiding this comment

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

So _file_prefix is short for _staging_file_prefix, e.g. it's only set for staged artifacts? And files_dir is main_dir, but only for published artifacts?

Something to think about for the future... should the whole FSArtifact be refactored such that:

  • main_dir (or files_dir... either name okay) holds the path to the staged artifact and then the published artifact
  • a bool variable like is_staging indicates whether the artifact is still unpublished
  • files_pattern is relative to main_dir and therefore doesn't need to be edited upon publication.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So _file_prefix is short for _staging_file_prefix, e.g. it's only set for staged artifacts? And files_dir is main_dir, but only for published artifacts?

Yep.

Re refactor/future - def agree, there's a number of things I would like to refactor or add, but that probably won't happen anytime soon, not because I don't want to, but because it's not necessarily our priority right now. Linking to #5

Base automatically changed from rav-meta-artifact to main April 14, 2022 16:49
@ravwojdyla ravwojdyla force-pushed the rav-handle-main-dir branch from 7344d16 to cdc6e60 Compare April 14, 2022 16:50
@ravwojdyla ravwojdyla merged commit 487fdb3 into main Apr 14, 2022
@ravwojdyla ravwojdyla deleted the rav-handle-main-dir branch April 14, 2022 17:07
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