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 client for erdbeere #748

Merged
merged 9 commits into from
Feb 21, 2025
Merged

Add client for erdbeere #748

merged 9 commits into from
Feb 21, 2025

Conversation

fosterfarrell9
Copy link
Collaborator

@fosterfarrell9 fosterfarrell9 commented Feb 4, 2025

We add a client for the erdbeere API. The main point is to establish communication in development between a local installation of erdbeere and a local installation of mampf. In order to be able to do that, some headers have to be modified, so we wrote a small wrapper for that (in production it does basically nothing, i.e. the header is not modified).


Respective PR on the erdbeere side: MaMpf-HD/erdbeere#4

Warning

Merge the Erdbeere PR first, then this PR.

Splines and others added 4 commits January 3, 2025 22:27
* Init coffee TODO list (for conversion)

* Show number of lines in coffee TODO list

* Sort list according to number of lines in coffee files

* Remove import_manuscript.coffee

* Replace deprecated location.reload(true) with cache busting

* Delete error.coffee

* Replace subscription swatch coffee by JS

* Replace location.reload() in identify.coffee

* Decaffeinate update for answers (in lecture edit mode)

* Decaffeinate delete_edge

* Delete new.coffee

* Decaffeinate default target update in quiz

* Decaffeinate cancel edit tags (erdbeere)

* Decaffeinate display_info (for erdbeere)

* Decaffeinate edit tags

* Decaffeinate delete_account modal rendering

* Decaffeinate cancel_edit tutorials

* Add watch out for section

* Decaffeinate validate certificate (tutorials)

* Decaffeinate cancel edit assignment

* Decaffeinate cancel_import_media (Reset button)

* Decaffeinate cancel_action as tutor (e.g. move to another tut)

* Decaffeinate cancel_edit_correction (as tutor)

* Decaffeinate validate quiz certificates (as tutor)

* Decaffeinate new vertex (in quiz)

* Delete render_sidebar

* Decaffeinate late submission accept

* Decaffeinate reject submission (as tutor)

* Decaffeinate refresh_token (for submissions as tutor)

* Add 😭 emoji
@Splines
Copy link
Member

Splines commented Feb 4, 2025

@fosterfarrell9 Could you merge the dev branch first into this one? It seems there is some divergence, e.g. the coffee file etc. You might have not yet pulled the new dev branch.

Copy link
Member

@Splines Splines left a comment

Choose a reason for hiding this comment

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

Nice, this works like a charm, thanks! Here some further comments. I've also reviewed the respective erdbeere PR. The erdbeere PR must be merged before this one.

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 23.07692% with 10 lines in your changes missing coverage. Please review.

Project coverage is 54.23%. Comparing base (872f7ac) to head (536ff68).
Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
app/controllers/lectures_controller.rb 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #748      +/-   ##
==========================================
- Coverage   54.26%   54.23%   -0.04%     
==========================================
  Files         170      171       +1     
  Lines        7356     7364       +8     
==========================================
+ Hits         3992     3994       +2     
- Misses       3364     3370       +6     

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

@fosterfarrell9 fosterfarrell9 merged commit ee29e58 into dev Feb 21, 2025
5 checks passed
@fosterfarrell9 fosterfarrell9 deleted the features/erdbeere_client branch February 21, 2025 21: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.

2 participants