Skip to content

Conversation

@kushthedude
Copy link
Member

Fixes #6075

Changes proposed in this pull request:

  • Removes Order_Expiry_time from Event to Settings
  • Modified apib as according to changes .

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

@kushthedude
Copy link
Member Author

@shreyanshdwivedi @uds5501 @mrsaicharan1 Please review, If I missed something?

@kushthedude
Copy link
Member Author

@iamareebjamal Why is travis failing ?

@iamareebjamal
Copy link
Member

@fossasia fossasia deleted a comment Jun 21, 2019
@fossasia fossasia deleted a comment Jun 21, 2019
@fossasia fossasia deleted a comment Jun 21, 2019
@fossasia fossasia deleted a comment Jun 21, 2019
@fossasia fossasia deleted a comment Jun 21, 2019
@codecov
Copy link

codecov bot commented Jun 21, 2019

Codecov Report

Merging #6083 into development will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff               @@
##           development   #6083      +/-   ##
==============================================
+ Coverage         66.5%   66.5%   +<.01%     
==============================================
  Files              286     286              
  Lines            14272   14275       +3     
==============================================
+ Hits              9491    9494       +3     
  Misses            4781    4781
Impacted Files Coverage Δ
app/factories/event.py 100% <ø> (ø) ⬆️
app/api/schema/events.py 89.86% <ø> (-0.07%) ⬇️
app/models/event.py 81.78% <ø> (-0.15%) ⬇️
tests/all/integration/api/helpers/test_order.py 97.72% <100%> (+0.1%) ⬆️
app/models/setting.py 90.34% <100%> (+0.11%) ⬆️
app/api/schema/settings.py 100% <100%> (ø) ⬆️
app/api/helpers/order.py 40.9% <100%> (+1.84%) ⬆️

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 3ed0142...8d10769. Read the comment docs.

@kushthedude
Copy link
Member Author

@iamareebjamal review please

# Static domain
static_domain = db.Column(db.String)
# Order Expiry Time
order_expiry_time = db.Column(db.Integer, default=15)
Copy link
Member

Choose a reason for hiding this comment

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

Write # minutes in front of it

Copy link
Member

Choose a reason for hiding this comment

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

@kushthedude I guess you missed to put a comment over here.

Copy link
Member Author

Choose a reason for hiding this comment

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

@shreyanshdwivedi I have specified the minutes above the field, Writing minutes in front of field definition, Would fail hound


def __init__(self,
app_environment=Environment.PRODUCTION,
order_expiry_time=None,
Copy link
Member

Choose a reason for hiding this comment

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

Add last

Copy link
Member Author

Choose a reason for hiding this comment

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

What will the following do ?

Copy link
Member

Choose a reason for hiding this comment

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

Still not added to last

Copy link
Member Author

Choose a reason for hiding this comment

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

@iamareebjamal added to last

@kushthedude
Copy link
Member Author

@iamareebjamal @niranjan94 @CosmicCoder96 Please Review

@kushthedude
Copy link
Member Author

@mrsaicharan1 @shreyanshdwivedi @iamareebjamal Please review

@kushthedude
Copy link
Member Author

@iamareebjamal Please Review

Copy link
Member

@shreyanshdwivedi shreyanshdwivedi left a comment

Choose a reason for hiding this comment

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

@kushthedude there is still one hound violation. Please check

@kushthedude
Copy link
Member Author

kushthedude commented Jun 29, 2019 via email

@kushthedude
Copy link
Member Author

@iamareebjamal @niranjan94 Please Review

@iamareebjamal iamareebjamal changed the title enh: Moving Order_Expiry_Time into Admin/Settings fix: Moving order_expiry_time into settings model Jun 30, 2019
@iamareebjamal iamareebjamal changed the title fix: Moving order_expiry_time into settings model fix: Move order_expiry_time into settings model Jun 30, 2019
@auto-label auto-label bot added the fix label Jun 30, 2019
@kushthedude
Copy link
Member Author

@CosmicCoder96 @niranjan94 please review

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.

Remove Registration Time Limit from Event Model and Add it to Settings Model

7 participants