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

Replace data sources with shadow mode #2587

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Conversation

nickygerritsen
Copy link
Member

Fixes #2087

This makes the API always use external ID's and use sane defaults for the field if not provided.

doc/manual/config-advanced.rst Outdated Show resolved Hide resolved
webapp/migrations/Version20240601180624.php Show resolved Hide resolved
webapp/src/Controller/API/AbstractApiController.php Outdated Show resolved Hide resolved
@nickygerritsen nickygerritsen force-pushed the always-use-externalid branch 3 times, most recently from 080932d to f0b4771 Compare June 4, 2024 20:39
Copy link
Member

@vmcj vmcj left a comment

Choose a reason for hiding this comment

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

I did not check the Tests at all.

doc/manual/import.rst Outdated Show resolved Hide resolved
webapp/migrations/Version20240601180624.php Show resolved Hide resolved
webapp/src/Controller/Jury/ContestController.php Outdated Show resolved Hide resolved
webapp/src/Controller/Jury/LanguageController.php Outdated Show resolved Hide resolved
webapp/src/Controller/BaseController.php Outdated Show resolved Hide resolved
webapp/src/Entity/Problem.php Outdated Show resolved Hide resolved
webapp/src/Entity/Problem.php Outdated Show resolved Hide resolved
webapp/src/Form/Type/AbstractExternalIdEntityType.php Outdated Show resolved Hide resolved
webapp/src/Form/Type/AbstractExternalIdEntityType.php Outdated Show resolved Hide resolved
webapp/tests/Unit/Controller/API/BaseTestCase.php Outdated Show resolved Hide resolved
@vmcj
Copy link
Member

vmcj commented Jun 5, 2024

Overall I think this is good and we just need a contest to prove that it works but it would be good if someone else also takes a good look.

@meisterT
Copy link
Member

meisterT commented Jun 6, 2024

It seems to be possible to modify the external IDs in the UI (might have been the case before). That seems asking for trouble.

@nickygerritsen
Copy link
Member Author

It seems to be possible to modify the external IDs in the UI (might have been the case before). That seems asking for trouble.

This was always possible yes. Are you proposing we disallow this after creation? I.e. only add it for new entities?

@meisterT
Copy link
Member

meisterT commented Jun 6, 2024

That is my proposal indeed, but since you didn't introduce it in this PR, let's do in a separate one if you agree

webapp/src/Entity/User.php Outdated Show resolved Hide resolved
webapp/src/Entity/Team.php Outdated Show resolved Hide resolved
@nickygerritsen nickygerritsen force-pushed the always-use-externalid branch from fbc5c5a to 1c0d1e7 Compare June 10, 2024 11:15
@nickygerritsen nickygerritsen added this pull request to the merge queue Jun 10, 2024
Merged via the queue into main with commit b73f61a Jun 10, 2024
20 of 22 checks passed
@nickygerritsen nickygerritsen deleted the always-use-externalid branch June 10, 2024 11:16
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.

Importing of files with data source = 0 broken
3 participants