-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Iterate through pages of Bitbucket API's response #8891
Conversation
a5d6255
to
6a402ed
Compare
.list({ | ||
workspace, | ||
pagelen: 100, | ||
pagelen, | ||
page, | ||
role: "admin", // installation of webhooks is allowed for admins only | ||
}) | ||
.catch((e) => { | ||
console.error(e); |
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.
Is there a simple way to show errors like this to users without requiring user interaction like alert() or confirm() do? I like the pattern in GitHub where it adds a blue banner at the top with error or success messages.
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.
Do you have a screenshot of an example? Either on our own platform or on GitHub.
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.
That's a nice idea. I think we were discussing this already and the toast notification was included as well.
cc. @gtsiolis
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.
I have opened separate issue #8933.
Keen to ship this fix.
6a402ed
to
f6bcb39
Compare
@laushinka if you want to have this tested in a sustainable way, I'd suggest to make the |
f6bcb39
to
5f860ae
Compare
5f860ae
to
f781069
Compare
/werft run 👍 started the job as gitpod-build-laushinka-cannot-see-all-our-repositories-865.7 |
/hold (to reset pagelen) |
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 for me in testing - thanks @laushinka
f20e826
to
34d9042
Compare
Pagelength reset, will /unhold |
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.
LGTM
Description
This change allows iterating through all the pages of Bitbucket API's response.
Related Issue(s)
Fixes #8650
How to test
Release Notes
Documentation