-
Notifications
You must be signed in to change notification settings - Fork 378
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
exercising submission in the dev container doesn't leave the submission in the app container's files. #6185
Comments
Trying to reproduce, I see the files being uploaded to Is that what you're experiencing? (Just noticed that vscode had spun up using containers I'd manually created, so if it's not what you saw, that might be the cause. Retesting with fresh containers now.) |
I'd have to repeat the exercise as I've destroyed that set of containers in the interim, but I don't think there was anything in /workspace/test/id/ in the app container. But even if there was, why is it landing there? But yes, "does not show up on the draft page" is the underlying motivation for figuring this out. |
It's in def move_files_to_repository(submission):
for ext in settings.IDSUBMIT_FILE_TYPES:
source = os.path.join(settings.IDSUBMIT_STAGING_PATH, '%s-%s.%s' % (submission.name, submission.rev, ext))
dest = os.path.join(settings.IDSUBMIT_REPOSITORY_PATH, '%s-%s.%s' % (submission.name, submission.rev, ext)) where those settings, in the default IDSUBMIT_REPOSITORY_PATH = "test/id/"
IDSUBMIT_STAGING_PATH = "test/staging/" whereas, in def get_file_path(self):
if not hasattr(self, '_cached_file_path'):
if self.type_id == "draft":
if self.is_dochistory():
self._cached_file_path = settings.INTERNET_ALL_DRAFTS_ARCHIVE_DIR
else:
if self.get_state_slug() == "rfc":
self._cached_file_path = settings.RFC_PATH
else:
draft_state = self.get_state('draft')
if draft_state and draft_state.slug == 'active':
self._cached_file_path = settings.INTERNET_DRAFT_PATH
else:
self._cached_file_path = settings.INTERNET_ALL_DRAFTS_ARCHIVE_DIR is using entirely different paths for drafts. If I change |
Good diagnostic change, but not the change to make to fix the issue. |
Yes, the change was just diagnostic. Short of fixing #6186 we can probably change the values of the paths in |
If I change |
closing this - reopen if there's some action implied that's not already captured by another issue |
When exercising submitting a draft, the xml and generated formats do not land in a place the app container can see.
In the celery container they appear to be in /workspace/test/id/
The text was updated successfully, but these errors were encountered: