Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Deprecation: remove "use system packages" (
python.system_packages
config key and UI checkbox) #10562New 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
Deprecation: remove "use system packages" (
python.system_packages
config key and UI checkbox) #10562Changes from 1 commit
9275a56
c513568
82b5ec4
6b0230c
75bcc32
4561971
26d0748
cebb79e
71904ad
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
What error attribute? On the build itself?
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.
Yes
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.
If you would like this, we should make the APIv3 response match what we want, perhaps applying the filter on the field in the response 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.
Hrm.. I don't think the API should return blob HTML tags on its response.
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.
Similar to templates and HTMX, the front end should only have to display the data from the backend application. I don't think we should have a front end reimplementation of
urlize
, which is required here to showbuild.error
in the same way the templates would render it.On the implementation side, I think we should be authoring error message to be a bit more rich than what we're doing now. Relying on
urlize
results in error message HTML like:Something happened. See our documentation on webhooks at <a href="https://docs.readthedocs.io/page/something.html">https://docs.readthedocs.io/page/something.html</a>
This is not super user friendly, but is also not accessible either. Using HTML in the error would be better, but does require some translation to HTML at some point:
Something happened. <a href="https://docs.readthedocs.io/page/something.html">Read our documentation on webhooks</a> for more information
This is perhaps another good point for the notification redesign.
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 think this is out of discussion. We are not using HTMX which requires specific endpoints for its purpose. Besides, here we are talking about a resource API that exposes data to our users. If we want to start exposing "data to be rendered by the frontend without any modification" that's a whole different use case than what the API was thought for.
In the case we want move in that direction,we will need to add
_display
fields (or similar) to all the things we want to expose to user as-is.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 know we're not using HTMX, but we've talked about this approach specifically. Templates are more applicable then, and maintain a similar opinionated approach. My point is that we should do what we can at the backend in order to keep our frontend footprint low.
I think we talk about this more as part of the notification refactor either way. I just brought this up here to note that replicating
urlize
in front end code is not a great path forward.I don't feel I'm talking about the same thing here. I am only referring to text with HTML links embedded, not any more structure than that.
Well, I'd certainly say our API is dual function. The API needs to be useful for our own application too, it's not just a user resource API.
Perhaps, but our application is also a consumer of this API. We don't need all the features exposed to end users though.
But if not the current API, it should be something on the application side. This can be separate, a different API or API-like endpoint, but it should be part of the application. I guess I don't see a strong reason for avoiding APIv3 though.
That seems fine, I don't have strong opinions on structure. We're not solving this problem here, so it's worth thinking about more. I'm just noting here as I think we should change our patterns, and the pattern noted in the PR here, in our notification refactor.