Skip to content

Conversation

@eldering
Copy link
Member

Also rename variables and comment to clarify that the listed types are not the only ones allowed, just the ones suggested/ mentioned in the CLICS specification (as examples).

Closes: #3163

@nickygerritsen
Copy link
Member

I like this better than mine 😄 . We should fix the test though but you can see what I did in my PR.

}

return null;
return 'other';
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return 'other';
return 'domjudge_internal';

So other systems reading it know who to contact if they want to do anything with the account.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not strongly against this, but why is this better than just other? If you're querying the DOMjudge API, you know the source already. Do we want to distinguish our nonstandard accounts from possibly another system's nonstandard accounts?x

Copy link
Member

Choose a reason for hiding this comment

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

The CDS might know the source, but things behind the CDS don't, if you make contest exports it's more convenient etc.

Copy link
Member

Choose a reason for hiding this comment

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

I have a slight preference for other but am also fine with domjudge_internal.

Copy link
Member Author

Choose a reason for hiding this comment

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

I also prefer other. I prefer a generic term that can potentially be added to the spec than something DOMjudge specific, as I don't see a case where you'd not know or easily figure out this came from DOMjudge.

@eldering eldering force-pushed the fix-api-account-type branch from 5434f9e to a89f0e3 Compare October 25, 2025 14:31
@eldering
Copy link
Member Author

I like this better than mine 😄 . We should fix the test though but you can see what I did in my PR.

Done

}

return null;
return 'other';
Copy link
Member

Choose a reason for hiding this comment

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

I have a slight preference for other but am also fine with domjudge_internal.

Also rename variables and comment to clarify that the listed
types are not the only ones allowed, just the ones suggested/
mentioned in the CLICS specification (as examples).

Closes: #3163
@eldering eldering force-pushed the fix-api-account-type branch from a89f0e3 to 04078ab Compare October 26, 2025 10:59
@eldering eldering added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit cf2478c Oct 27, 2025
42 checks passed
@eldering eldering deleted the fix-api-account-type branch October 27, 2025 11:25
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.

Account type can be null, which is not allowed by ccs specification

5 participants