• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HEPData / hepdata / 1093
83%

Build:
DEFAULT BRANCH: master
Ran 13 Jul 2020 04:17PM UTC
Jobs 1
Files 61
Run time 8min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1093

push

travis-ci

web-flow
Feature cli upload (#219)

* New upload_sandbox_paylod function in modules/records/views.py, which implements a /sandbox/upload endpoint to receive sandbox uploads from cli / api.

* New endpoint /upload for non-sandbox record uplaods from api/cli. Requires match of role (='uploader'), email and invitation cookie.

* Reabsorbed sandbox/upload into sandbox(/<int:recid>)/consume, by removing @login_required and checking current_user.is_authenticated

* Removed record/upload endpoint, reabsorbed into /consume. Using werkzeug.exceptions to return rexception to client instead of just raising the exception on the server side.

* Fixed issue 215: allow gziped single yaml file submission.

* Started modules/new_inspire_api and tests/new_inspire_ds_tests. The latter is modelled on tests/inspire_ds_tests and all pass. However, replacing modules/inspire_api with modules/new_inspire_api currently results in 4 failed tests (excluding e2e). Minor esthetical changes to a couple of other files.

* Splitting off new_inspire_api related changes

* Removed debugging print statement

* Adding .yaml.gz record test to try address reduced coverage.

* Added checks for 'sandbox' and 'todo' in relevant 'payload' functions; email comparison is lower case.

* Reasons for upload failure with forwarding to client

* Added sandbox record not found

* records: improve access to User and SubmissionParticipant in /consume

* Check that user is active and has confirmed their email address.
* Rewrite code checking user can upload using SubmissionParticipant.

* email: mention possible use of 'hepdata-cli upload' in invitation email

* Cli-upload requires login

* Moved HTTP errors from 'raise werkzeug.exceptions ... ' to 'return jsonify( ... ), error_code'

* New /record/cli_upload endpoint, reverted changes to other ones

* records: make /cli_upload endpoint more robust and extend uploader email

* Check that 'pswd' and 'sandbox' are present in r... (continued)

21 of 21 new or added lines in 5 files covered. (100.0%)

2203 of 2736 relevant lines covered (80.52%)

0.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
hepdata/modules/records/api.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
hepdata/utils/file_extractor.py
Jobs
ID Job ID Ran Files Coverage
1 1093.1 13 Jul 2020 04:17PM UTC 0
80.52
Travis Job 1093.1
Source Files on build 1093
  • Tree
  • List 61
  • Changed 6
  • Source Changed 5
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1093
  • 1e2171ee on github
  • Prev Build on master (#1067)
  • Next Build on master (#1096)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc