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

feat: Add session states API #7162

Merged
merged 2 commits into from
Jul 25, 2020
Merged

feat: Add session states API #7162

merged 2 commits into from
Jul 25, 2020

Conversation

iamareebjamal
Copy link
Member

@iamareebjamal iamareebjamal commented Jul 25, 2020

Fixes #7149

@auto-label auto-label bot added the feature label Jul 25, 2020
},
}

@sessions_blueprint.route('/states')

Choose a reason for hiding this comment

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

expected 2 blank lines, found 1

@@ -209,10 +211,14 @@ def query(self, view_kwargs):
'confirmed': {'withdrawn': True},
'rejected': {'withdrawn': True},
'canceled': {'withdrawn': True},
'withdrawn': {'pending': True},
'withdrawn': {}, # Withdrawn is final

Choose a reason for hiding this comment

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

at least two spaces before inline comment

@@ -200,7 +202,7 @@ def query(self, view_kwargs):
'rejected': True,
'confirmed': True,
},
'withdrawn': {'accepted': True, 'rejected': True, 'confirmed': True},
'withdrawn': {}, # Withdrawn is final

Choose a reason for hiding this comment

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

at least two spaces before inline comment

@codecov
Copy link

codecov bot commented Jul 25, 2020

Codecov Report

Merging #7162 into development will increase coverage by 0.00%.
The diff coverage is 83.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##           development    #7162   +/-   ##
============================================
  Coverage        62.86%   62.87%           
============================================
  Files              259      259           
  Lines            12985    12990    +5     
============================================
+ Hits              8163     8167    +4     
- Misses            4822     4823    +1     
Impacted Files Coverage Δ
app/api/routes.py 100.00% <ø> (ø)
app/api/sessions.py 55.62% <75.00%> (+0.21%) ⬆️
app/instance.py 87.77% <100.00%> (+0.13%) ⬆️

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 78cdfeb...104658f. Read the comment docs.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Jul 25, 2020

This pull request introduces 1 alert when merging 104658f into 78cdfeb - view on LGTM.com

new alerts:

  • 1 for Unused import

@iamareebjamal iamareebjamal merged commit 1033f87 into development Jul 25, 2020
@iamareebjamal iamareebjamal deleted the session-states branch July 25, 2020 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add session status change validations
2 participants