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

1094 select proforma version for export direct download api #1550

Merged

Conversation

kkoehn
Copy link
Collaborator

@kkoehn kkoehn commented Jul 29, 2024

@kkoehn kkoehn self-assigned this Jul 29, 2024
@kkoehn kkoehn linked an issue Jul 29, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.14%. Comparing base (138864c) to head (6b829d6).
Report is 8 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1550   +/-   ##
=======================================
  Coverage   94.13%   94.14%           
=======================================
  Files         123      123           
  Lines        3000     3004    +4     
=======================================
+ Hits         2824     2828    +4     
  Misses        176      176           

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

@kkoehn kkoehn force-pushed the 1094-select-proforma-version-for-export-direct-download-api branch 3 times, most recently from 1b7cf97 to fa49748 Compare August 9, 2024 13:13
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.

Great work already! If you don't mind, here is some feedback already (besides the "draft" status of the PR). I tested the functionality with CodeOcean already and it worked flawlessly with either version 😁

app/controllers/collections_controller.rb Show resolved Hide resolved
app/controllers/tasks_controller.rb Show resolved Hide resolved
app/views/collections/show.html.slim Outdated Show resolved Hide resolved
app/views/account_links/_form.html.slim Show resolved Hide resolved
app/services/proforma_service/cache_import_file.rb Outdated Show resolved Hide resolved
@kkoehn kkoehn force-pushed the 1094-select-proforma-version-for-export-direct-download-api branch 3 times, most recently from 4e8a25f to 16f17e3 Compare August 12, 2024 21:15
@kkoehn
Copy link
Collaborator Author

kkoehn commented Aug 12, 2024

@MrSerth thanks for the feedback, I fixed your suggestions. I'm still waiting to merge the proforma PR, so we can also fix those edge-cases.

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.

Thanks for integrating my feedback already. Here's some follow-up feedback I found, but otherwise I am fine with the changes.

For sure, I'll remind @Dome-GER about the missing review for openHPI/proformaxml#409 to unblock the current PR.

config/locales/de/models.yml Outdated Show resolved Hide resolved
app/controllers/tasks_controller.rb Show resolved Hide resolved
app/controllers/collections_controller.rb Show resolved Hide resolved
app/views/collections/show.html.slim Outdated Show resolved Hide resolved
config/locales/de/views/account_links.yml Show resolved Hide resolved
app/models/account_link.rb Show resolved Hide resolved
app/views/account_links/_form.html.slim Show resolved Hide resolved
@kkoehn kkoehn force-pushed the 1094-select-proforma-version-for-export-direct-download-api branch from 16f17e3 to ece2929 Compare August 14, 2024 19:00
@MrSerth
Copy link
Member

MrSerth commented Aug 22, 2024

Since openHPI/proformaxml#409 was merged, we can now draft a new ProFormA version, update this PR and undraft it.

@kkoehn kkoehn force-pushed the 1094-select-proforma-version-for-export-direct-download-api branch from ece2929 to 9ca9877 Compare August 26, 2024 18:08
@kkoehn kkoehn marked this pull request as ready for review August 26, 2024 18:26
@kkoehn kkoehn force-pushed the 1094-select-proforma-version-for-export-direct-download-api branch from 9ca9877 to 1fbba56 Compare August 26, 2024 18:31
@kkoehn
Copy link
Collaborator Author

kkoehn commented Aug 26, 2024

@MrSerth Do you think we need to address the case of more ProformaXML version being added? Currently it is assumed that every saved task has the latest version. If a new version gets added that could lead to problems. A possible solution could be to add a proforma_version column on task. What do you think?

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.

@MrSerth Do you think we need to address the case of more ProformaXML version being added?

Not necessarily. The ProFormA working group is currently not working on a new version, so that I don't expect major changes in the near future (there could be a bugfix release, of course).

Currently it is assumed that every saved task has the latest version. If a new version gets added that could lead to problems.

I see. I would actually keep that assumption and would ensure that all existing tasks are migrated to a newer version when we add the respective version support in the future.

A possible solution could be to add a proforma_version column on task. What do you think?

Sure, could work. However, as mentioned above, I would not do so right now.

Gemfile.lock Outdated Show resolved Hide resolved
@kkoehn kkoehn force-pushed the 1094-select-proforma-version-for-export-direct-download-api branch from 1fbba56 to 6b829d6 Compare September 2, 2024 19:08
@kkoehn kkoehn merged commit 788e13e into master Sep 2, 2024
13 checks passed
@kkoehn kkoehn deleted the 1094-select-proforma-version-for-export-direct-download-api branch September 2, 2024 20:41
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.

Select ProFormA version for export (direct download / API)
2 participants