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

Fix apps shown in multi select when no app-id is passed #648

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Feb 13, 2023

🔧 Changes

This PR fixes a bug with the appPickerOptions func where it was skipping all generic app types. Furthermore we enhance the function to accept request options so we can reuse the same func within the quickstart download command and skip fetching generic app types for it.

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught marked this pull request as ready for review February 14, 2023 10:33
@sergiught sergiught requested a review from a team as a code owner February 14, 2023 10:33
if c.GetAppType() == "" {
continue
func (c *cli) appPickerOptions(requestOpts ...management.RequestOption) pickerOptionsFunc {
requestOpts = append(requestOpts, management.Parameter("is_global", "false"))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

After this PR we can follow up with another one where we can remove the "All Applications" hack removal from the apps display pkg to skip showing the global client.

priorityOpts = append(priorityOpts, opt)
} else {
opts = append(opts, opt)
if tenant.DefaultAppID == client.GetClientID() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔 There's very minimal usage of the default app id at the moment within the cli, could be something we might want to remove or enhance support for.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's fine to leave it as it is for now.

@sergiught sergiught changed the title Fix appPickerOptions to stop skipping generic apps Fix apps shown in multi select when no app-id is passed Feb 14, 2023
@sergiught sergiught merged commit 2ba24a6 into main Feb 14, 2023
@sergiught sergiught deleted the fix-apps-picker branch February 14, 2023 15:14
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.

3 participants