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

Giving Milline a proper api and not just accepting event messages who… #48

Merged
merged 6 commits into from
Aug 15, 2018

Conversation

dannylamb
Copy link
Contributor

…lesale

GitHub Issue: Part of Islandora/documentation#769

What does this Pull Request do?

Updates Crayfish to work with the new Flysystem changes.

What's new?

  • No longer need file routes since binaries are handled by flysystem
  • API is more established, and it doesn't just blindly accept json messages.
  • The event parsing logic has been moved to Alpaca.

How should this be tested?

Test as part of Islandora/documentation#92

Interested parties

@Islandora-CLAW/committers

{
$this->log->debug("YOU GET HERE YET?");
Copy link
Contributor

Choose a reason for hiding this comment

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

We might want to take that line out or make it a proper message.

$app->post('/media', "milliner.controller:saveMedia");
$app->post('/file', "milliner.controller:saveFile");
$app->delete('/resource/{uuid}', "milliner.controller:delete");
$uuid_regex = "/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can get rid of this, too, i think.

@codecov
Copy link

codecov bot commented Aug 1, 2018

Codecov Report

Merging #48 into master will increase coverage by 10.28%.
The diff coverage is 80%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master      #48       +/-   ##
=============================================
+ Coverage     55.03%   65.32%   +10.28%     
+ Complexity      123       86       -37     
=============================================
  Files             5        5               
  Lines           645      421      -224     
=============================================
- Hits            355      275       -80     
+ Misses          290      146      -144
Impacted Files Coverage Δ Complexity Δ
Milliner/src/Controller/MillinerController.php 100% <100%> (+28.35%) 10 <9> (-22) ⬇️
Milliner/src/Service/MillinerService.php 48.14% <60%> (+11.19%) 48 <24> (-15) ⬇️
Milliner/src/Gemini/GeminiClient.php 81.81% <0%> (-2.8%) 12% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed840f7...bbca02d. Read the comment docs.

@whikloj whikloj merged commit 8286b2f into Islandora:master Aug 15, 2018
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.

3 participants