Skip to content

make AWS more resilient towards missing ScoreTypes and Languages - #1460

Merged
prandla merged 2 commits into
cms-dev:mainfrom
e-i-o:aws-missing-plugin-handling
Aug 23, 2025
Merged

make AWS more resilient towards missing ScoreTypes and Languages#1460
prandla merged 2 commits into
cms-dev:mainfrom
e-i-o:aws-missing-plugin-handling

Conversation

@prandla

@prandla prandla commented Jul 10, 2025

Copy link
Copy Markdown
Member

Closes #1095.

Fixed all cases where AWS relied on a Language object to get the source file extension, made it default to .txt.

There was also one case where an invalid ScoreType would throw errors on the submission details page, fixed that too.

Invalid TaskTypes seem to already be handled correctly.

@pxsit pxsit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks ok to me.

@prandla
prandla force-pushed the aws-missing-plugin-handling branch from ee6ca2b to e5698fc Compare August 23, 2025 13:26
@prandla
prandla requested a review from veluca93 August 23, 2025 13:53
Comment thread cms/server/admin/handlers/submission.py
@prandla
prandla force-pushed the aws-missing-plugin-handling branch from e5698fc to e5e6816 Compare August 23, 2025 17:52
@prandla

prandla commented Aug 23, 2025

Copy link
Copy Markdown
Member Author

@veluca93 care to take a look again? :)

@prandla
prandla merged commit 79fbefe into cms-dev:main Aug 23, 2025
4 checks passed
@prandla
prandla deleted the aws-missing-plugin-handling branch August 23, 2025 19:52
ronryv added a commit to ioi-isr/cms that referenced this pull request Nov 1, 2025
* CWS: Mark ajax request endpoints as @api_login_required (cms-dev#1522)

This prevents cases where they would redirect to the login screen
unexpectedly. Also improved handling of errors in the submission details
popup.

* AWS: don't refresh the page when contest phase changes (cms-dev#1510)

* make AWS more resilient towards missing ScoreTypes and Languages (cms-dev#1460)

* Translated using Weblate (Estonian)

Currently translated at 100.0% (311 of 311 strings)

Translation: CMS/main
Translate-URL: https://hosted.weblate.org/projects/cms/main/et/

* Translated using Weblate (French)

Currently translated at 100.0% (311 of 311 strings)

Translation: CMS/main
Translate-URL: https://hosted.weblate.org/projects/cms/main/fr/

* Translated using Weblate (Arabic)

Currently translated at 54.9% (171 of 311 strings)

Translation: CMS/main
Translate-URL: https://hosted.weblate.org/projects/cms/main/ar/

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 67.5% (210 of 311 strings)

Translation: CMS/main
Translate-URL: https://hosted.weblate.org/projects/cms/main/zh_Hant/

* Translated using Weblate (Italian)

Currently translated at 100.0% (311 of 311 strings)

Translation: CMS/main
Translate-URL: https://hosted.weblate.org/projects/cms/main/it/

* Initialize Hebrew translation

* mention weblate more explicitly in README (cms-dev#1531)

this was requested by the Weblate support team.

* Remove some unused files (cms-dev#1533)

We don't use codacy any more (at least it doesn't seem so?) and we use
weblate instead of onesky now.

* Fix possible timing leak in validate_password (cms-dev#1535)

* Make the helper scripts in docker/ a bit more robust

When the git repo is in a detached HEAD state, GIT_BRANCH_NAME became
"HEAD", which docker does not like as a project name. So I lowercased it
and added a cms- in front for good measure.

* Make functional test suite not depend on git

* Bump gevent from 25.5.1 to 25.8.1 (cms-dev#1538)

Bumps [gevent](https://github.com/gevent/gevent) from 25.5.1 to 25.8.1.
- [Release notes](https://github.com/gevent/gevent/releases)
- [Changelog](https://github.com/gevent/gevent/blob/master/docs/changelog_pre.rst)
- [Commits](gevent/gevent@25.5.1...25.8.1)

---
updated-dependencies:
- dependency-name: gevent
  dependency-version: 25.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix schema_diff_test on new debian (cms-dev#1551)

* Bump zope-event from 5.1 to 6.0 (cms-dev#1555)

Bumps [zope-event](https://github.com/zopefoundation/zope.event) from 5.1 to 6.0.
- [Changelog](https://github.com/zopefoundation/zope.event/blob/master/CHANGES.rst)
- [Commits](zopefoundation/zope.event@5.1...6.0)

---
updated-dependencies:
- dependency-name: zope-event
  dependency-version: '6.0'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump zope-interface from 7.2 to 8.0 (cms-dev#1554)

Bumps [zope-interface](https://github.com/zopefoundation/zope.interface) from 7.2 to 8.0.
- [Changelog](https://github.com/zopefoundation/zope.interface/blob/master/CHANGES.rst)
- [Commits](zopefoundation/zope.interface@7.2...8.0)

---
updated-dependencies:
- dependency-name: zope-interface
  dependency-version: '8.0'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump version to 1.6.dev0 (cms-dev#1532)

* Add rws public config and configurable id column

* Avoid reading GEN if score parameters are already found in task.yaml

* Fixes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: p. randla <prandla@r9.pm>
Co-authored-by: Pasit Sangprachathanarak <ouipingpasit@gmail.com>
Co-authored-by: Muaath Alqarni <translate@muaath.dev>
Co-authored-by: LittleCube <froakie20161113@gmail.com>
Co-authored-by: William Di Luigi <williamdiluigi@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elia Soldati <eliasol2005@gmail.com>
Co-authored-by: Francesco Vercellesi <francesco@vercellesi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

cms crashes on unknown programming language

3 participants