olin-build / ABE

Amorphous Blob of Events
https://abe.olin.build/
GNU Affero General Public License v3.0
7 stars 1 forks source link

Protected Labels #259

Closed iblancett closed 6 years ago

iblancett commented 6 years ago

Description

Users can no longer add or edit events with protected labels. Does not apply to ICS feed yet.

Fixes #218

Testing

Added tests under "test_put" and "test_post" in test_events.py as well as sample labels and data to test. Should be all you need.

codecov[bot] commented 6 years ago

Codecov Report

Merging #259 into dev will increase coverage by 0.92%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #259      +/-   ##
==========================================
+ Coverage   67.31%   68.23%   +0.92%     
==========================================
  Files          25       25              
  Lines        1285     1294       +9     
==========================================
+ Hits          865      883      +18     
+ Misses        420      411       -9
Impacted Files Coverage Δ
abe/resource_models/event_resources.py 65.07% <100%> (+2.68%) :arrow_up:
abe/helper_functions/query_helpers.py 95.91% <0%> (+6.12%) :arrow_up:
abe/resource_models/label_resources.py 85.07% <0%> (+8.95%) :arrow_up:

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 19b8a30...18c836f. Read the comment docs.