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

Add direct download of proforma zip #2834

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kkoehn
Copy link
Contributor

@kkoehn kkoehn commented Mar 19, 2025

adds download part for #1521

@kkoehn kkoehn self-assigned this Mar 19, 2025
@kkoehn kkoehn linked an issue Mar 19, 2025 that may be closed by this pull request
@kkoehn kkoehn force-pushed the 1521-allow-downloading-proforma-zip-files branch from 4a21c2d to 31e7826 Compare March 19, 2025 13:22
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.63%. Comparing base (e3103d5) to head (31e7826).

Files with missing lines Patch % Lines
app/controllers/exercises_controller.rb 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2834   +/-   ##
=======================================
  Coverage   69.63%   69.63%           
=======================================
  Files         211      211           
  Lines        6751     6755    +4     
=======================================
+ Hits         4701     4704    +3     
- Misses       2050     2051    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@MrSerth MrSerth left a comment

Choose a reason for hiding this comment

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

Awesome, thank you! I am happy to see you continue on these issues and provide a direct import and export functionality in CodeOcean. I've just skimmed through the changes and made a minor comment regarding the spelling.

@@ -37,6 +37,8 @@ de:
download_file_tree:
file_root: Erstellte Dateien
gone: Die angeforderte Datei konnte nicht abgerufen werden. Erstellte Dateien werden nur kurzzeitig vorgehalten und dann gelöscht. Bitte führen Sie den Code erneut aus und versuchen Sie dann wieder den Download der Datei.
download_proforma:
label: Download Proforma Zip
Copy link
Member

Choose a reason for hiding this comment

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

Based on our wording in CodeHarbor, I would recommend using ZIP with capital letters.

Suggested change
label: Download Proforma Zip
label: Download Proforma ZIP

In CodeHarbor, we also used the term "ProformaXML". However, this might be too long:

https://github.com/openHPI/codeharbor/blob/432e12f54365293137b439832908999dfff9985d/config/locales/de/proforma_errors.yml#L4

Alternatively, we dropped "ProformaXML" completely 🙈:

https://github.com/openHPI/codeharbor/blob/432e12f54365293137b439832908999dfff9985d/config/locales/de/common.yml#L14


Long story short: I would, at least, capitalize ZIP. On everything else, I am undecided.

@@ -37,6 +37,8 @@ en:
download_file_tree:
file_root: Generated Files
gone: The requested file could not be retrieved. Generated files are only held for a short time and are then deleted. Please run the code again and then try downloading the file a second time.
download_proforma:
label: Download Proforma Zip
Copy link
Member

Choose a reason for hiding this comment

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

See above.

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.

Allow downloading and uploading ProFormA ZIP files
2 participants