-
Notifications
You must be signed in to change notification settings - Fork 4
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
Notification: show build tip/warning messages on PR builds #88
Comments
This is a great idea. I agree build notifications on the build page are less likely to be seen. We could also email them or do site-wide notifications vs. just display on the build page. Finding the best way to get that info in front of people feels useful. I had a similar idea, which is exposing a "build status" addon that just shows a little 🟢 🟡 🔴 status in the doc page. The goal here is basically to show "freshness" or answer the question "Is this the latest commit that has already been built?" The main value here is in collaboration when you're actively updating the page and getting feedback. I keep having issues with PR previews where I push updates, let someone know it's updated, but the build hasn't completed yet and refreshed. Overall, I think having more "status" info on the PR builds in some fashion is good. I don't think we want "in your face" notifications except for something like "The last build of this branch failed" kind of messaging (This could also be a useful place for the 🔴 status icon to present similar info). |
I was thinking that if it's just the build status, we could include an UI element inside the "This page was created from a pull request build" notification and keep the notification and the status together in the same notification, since they are pretty related each other. Edit: maybe we can just change the color of the "branch" icon and add |
Yea, I think there's a few ways to show the data. I don't feel strongly about the UX, but a simple initial version would be neat just as a proof of concept, then we can build from there. |
When _not sending `url=` parameter_, we were returning the lastest build by date, but we need to filter it by `state=finished` and `success=True` in the same way as we are doing when sending the `url=` parameter. I found this while working on readthedocs/addons#88
I started playing with this and found two interesting things: We had a bug in our code for
To implement the use case that @ericholscher is describing here we don't have to cache the addons API responses for any page on PR builds. This is because the response will be dynamic and will depend on the ongoing build. This may not be a problem since we expect to have very little requests from PRs and we expect the cache to be invalidated frequently (on each push), but it's something to keep in mind if we decide to move forward with the implementation of your use case. |
Good point on the caching. It might be a use case for an additional API call for that addon if it's enabled or something -- but I agree, it's probably fine to just not cache PR builds in this case since they are hit way less often than production. |
When _not sending `url=` parameter_, we were returning the lastest build by date, but we need to filter it by `state=finished` and `success=True` in the same way as we are doing when sending the `url=` parameter. I found this while working on readthedocs/addons#88
Now that we allowed anonymous access to the APIv3 (readthedocs/readthedocs.org#11485), I think we should be able to do a POC for this. We should be able to hit https://docs.readthedocs.io/en/stable/api/v3.html#builds-listing and get the latest build and check the We will need to add a |
It would be really good to find a way to show build "tip" and "warning" notifications on the rendered version of the documentation. This will make people reading the PR version of that documentation to be aware of potential issues on that particular build.
We could:
Example
This notification shown in the build's detail page (that most people don't see)
could be shown in the rendered version as:
Related:
The text was updated successfully, but these errors were encountered: