-
Notifications
You must be signed in to change notification settings - Fork 13
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/org choices #31
Fix/org choices #31
Conversation
@Keyrxng Could we have preview deployments like we have for other frontend projects? |
Okay that's fine then ty
Will address that
If you clicked add but made a mistake/wanted to change a param, you'd want to be able to click add again yeah? But otherwise it should only allow you to click add once?
|
@Keyrxng Not to be included so the default value is used on |
Implemented
Addressed
Implemented:
I'm unsure how you want me to handle multiple |
@zugdev fancy doing a review bud? |
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.
Getting 3 out of 4 expected organizations:
The only missing org is https://github.com/rndquu-org where my account is an owner. It used to be displayed in the previous PRs but this PR somehow doesn't display it.
Pls fix.
@rndquu your membership is private so it would only be returned by Perhaps it's the |
The missing https://github.com/rndquu-org is displayed in this PR, so it's smth code related. |
Ty for the clarification I will look into it |
I expect the issue stems from your org not having a config repo, which we rely on to identify permissions to work around OAuth errors with org settings. I duplicated the logic here. This approach:
An alternative would be to list all org repos and check any repo if Hopefully this has resolved it for you, again it's hard for me to debug your conditions locally so my apologies for the back and forth |
I think the previous push toaster should disappear if I press on add again |
This doesnt change anything for me, so not sure |
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.
Works fine, 4 out of 4 organizations are displayed for me, as expected
Resolves #26
Requires #25
Changes:
rest.users.getAuthenticated()
rest.orgs.listForAuthenticatedUser()
rest.orgs.listForUser(username)
rest.repos.getCollaboratorPermissionLevel(org, .ubiquity-os)
QA:
Console:
Else:
I tried every
.rest.org
method that seemed relevant and none of them returned-marketplace
for me so idk if that's a me problem or an org problem but it should be fetched at least and either errored in the console or displayed but it's neither. It also didn't display for you either @gentlementlegen and we are both public members of the org.Could you try to see if
-marketplace
shows up for you now with this change?