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

Expose when externalContestSource (URI) returns non200 #2140

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Sep 3, 2023

To trigger this: create a contest with http://URL// (the double // is important)

Currently this does create the internal error but I'm not sure if we should do this, this is not really an internal error as its an external error. The InternalError class doesn't have support for this yet and we have nothing to disable.

Currently ignoring the error works, resolving keeps on hanging.

Opening the PR mostly for the discussion. Personally I think having an item under internalError view is nice as it alerts but its also a bit misusing the concept. This will add 1 extra alert in the shadow tab of the menu and mention that we're down.

For the issue see: #2117

@nickygerritsen
Copy link
Member

If we are adding fields to the contest source anyway, we could also add the actual error there and display it on that page?

@vmcj
Copy link
Member Author

vmcj commented Sep 4, 2023

If we are adding fields to the contest source anyway, we could also add the actual error there and display it on that page?

We do show the HTTP error on the page, not on the internal error (yet) as I was not sure if we want the internal error.
If you had another way of doing this in mind I'm fine with that but this was in line with other code.

@vmcj vmcj force-pushed the event-feed-non200 branch from 564d092 to d876911 Compare September 6, 2023 17:19
@vmcj vmcj requested a review from a team September 14, 2023 17:31
@vmcj vmcj marked this pull request as draft September 30, 2023 12:04
@vmcj vmcj force-pushed the event-feed-non200 branch from 14bd399 to 88ddbf4 Compare October 6, 2023 21:22
Exposes when externalContestSource (URI) returns a non HTTP 200.

To trigger this: create a contest with http://URL// (the double // is
important)
@vmcj vmcj force-pushed the event-feed-non200 branch from 88ddbf4 to 711479c Compare October 6, 2023 21:24
@vmcj vmcj marked this pull request as ready for review October 6, 2023 21:27
Copy link
Member

@nickygerritsen nickygerritsen left a comment

Choose a reason for hiding this comment

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

I love it like this. Way simpler.

@vmcj vmcj merged commit f6d2960 into DOMjudge:main Oct 7, 2023
18 checks passed
@vmcj vmcj deleted the event-feed-non200 branch October 7, 2023 09:42
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