-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[NIFI-13535] - Fix: Issues selecting GitHub branch on version control screens in new UI #9087
[NIFI-13535] - Fix: Issues selecting GitHub branch on version control screens in new UI #9087
Conversation
… screens in new UI
@@ -212,7 +212,8 @@ export class ImportFromRegistry extends CloseOnEscapeDialog implements OnInit { | |||
flowChanged(flowId: string): void { | |||
const registryId = this.importFromRegistryForm.get('registry')?.value; | |||
const bucketId = this.importFromRegistryForm.get('bucket')?.value; | |||
this.loadVersions(registryId, bucketId, flowId); | |||
const branch = this.importFromRegistryForm.get('branch')?.value; | |||
this.loadVersions(registryId, bucketId, flowId, branch); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there is a similar function for bucketChanged
which then calls loadFlows(registryId, bucketId)
and I think that would need to include the branch as well right?
Also, we need the same behavior on the "Start Version Version Control" screen. I am not sure if that is backed by |
Start version control doesn't load flows or flow versions since we are adding a new flow to the repository. I'm not sure I understand what needs changed there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the confusion, you are right about the Start dialog. Latest changes here look good and are working correctly. +1
Will review... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rfellows!
NIFI-13535
Properly include the branch query param in API calls to the backend registry API when provided.