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

Turn source image project into a combobox. #505

Merged

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Jan 9, 2025

The previous select was too restrictive as it didn't allow to provide a value for this field other than the project where the VM is to be scheduled.

Source image could be located in a different project and shared to the project where the VM is scheduled.

Also removed usage of anonymous inner class when a simpler alternative is available.

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

The previous select was too restrictive as it didn't allow to provide a value for this field other than the project where the VM is to be scheduled.

Source image could be located in a different project and shared to the project where the VM is scheduled.

Also removed usage of anonymous inner class when a simpler alternative is available.
@@ -834,16 +831,12 @@
}
}

public ListBoxModel doFillBootDiskSourceImageProjectItems(
@AncestorInPath Jenkins context,
public ComboBoxModel doFillBootDiskSourceImageProjectItems(

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing POST/RequirePOST annotation Warning

Potential CSRF vulnerability: If DescriptorImpl#doFillBootDiskSourceImageProjectItems connects to user-specified URLs, modifies state, or is expensive to run, it should be annotated with @POST or @RequirePOST
@raul-arabaolaza raul-arabaolaza merged commit 7ebe780 into jenkinsci:develop Jan 21, 2025
17 checks passed
@Vlatombe Vlatombe deleted the source-image-project-combobox branch January 21, 2025 13:42
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.

4 participants