Skip to content

feat: removes getCurrentVersion function and hardcodes modal version to v2#309

Merged
helen-m-lin merged 2 commits into
devfrom
feat-302-remove-v1-params
Sep 24, 2025
Merged

feat: removes getCurrentVersion function and hardcodes modal version to v2#309
helen-m-lin merged 2 commits into
devfrom
feat-302-remove-v1-params

Conversation

@johendrickson

@johendrickson johendrickson commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Closes #302.

  • Replaced calls to getCurrentVersion() with a fixed 'v2' value.
  • Simplifies modal logic for adding new parameters.
  • Ensures new parameters are consistently marked as v2.
image

…to v2

- Replaced calls to getCurrentVersion() with a fixed 'v2' value.
- Simplifies modal logic for adding new parameters.
- Ensures new parameters are consistently marked as v2.
@johendrickson johendrickson marked this pull request as ready for review September 22, 2025 22:58
Comment thread src/aind_data_transfer_service/server.py Outdated
Comment thread src/aind_data_transfer_service/templates/job_params.html Outdated
…coding v2

- Added DEFAULT_VERSION at top of job_params.html script.
- Replaced all hardcoded 'v2' references with DEFAULT_VERSION.
- Keeps modal version logic flexible for future version bumps (e.g., v3).

@helen-m-lin helen-m-lin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! Great job decoupling and simplifying the front-end logic.

@helen-m-lin helen-m-lin merged commit e94260d into dev Sep 24, 2025
3 checks passed
@helen-m-lin helen-m-lin deleted the feat-302-remove-v1-params branch September 24, 2025 17:08
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.

Default v2 params and remove v1 params from Job Params page

2 participants