Skip to content

Return the target ID from upload_vumark_template - #1549

Merged
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1486
Aug 27, 2026
Merged

Return the target ID from upload_vumark_template#1549
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1486

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Aug 26, 2026

Copy link
Copy Markdown
Member

Closes #1486.

upload_vumark_template returned None, so every caller that wanted the ID of what it had just uploaded had to name the target again and call wait_for_vumark_target_link and get_vumark_target_id itself. vws-python-mock's admin/create_secrets_files.py does exactly that.

It now returns the target ID, by composing those two functions rather than duplicating their waits.

This does make the function slower, and that is inherent to the request rather than a choice: the ID only exists once VWS has finished processing the target. Until then the target manager renders the name as plain text, with no link and no ID anywhere on the page. So "return the target ID" and "wait for processing" are the same thing, and the docstring's Returns: says so.

test_upload_vumark_template asserts the returned ID is 32 alphanumeric characters, matching what test_get_vumark_target_id already asserts.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM

Closes #1486

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM
@adamtheturtle
adamtheturtle force-pushed the adamtheturtle/vws-web-tools-issue-1486 branch from de92fca to 86d9292 Compare August 27, 2026 08:05
@adamtheturtle
adamtheturtle merged commit 4845220 into main Aug 27, 2026
29 checks passed
@adamtheturtle
adamtheturtle deleted the adamtheturtle/vws-web-tools-issue-1486 branch August 27, 2026 10:40
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.

upload_vumark_template does not return target ID

1 participant