Skip to content

Conversation

@kushthedude
Copy link
Member

Fixes #3161

Short description of what this resolves:

  • Moved all the Order_Expiry_Time into Admin Dashboard

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter 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)

@fossasia fossasia deleted a comment Jul 2, 2019
@fossasia fossasia deleted a comment Jul 3, 2019
@fossasia fossasia deleted a comment Jul 3, 2019
@fossasia fossasia deleted a comment Jul 3, 2019
@kushthedude kushthedude requested a review from abhinavk96 July 3, 2019 16:54
@fossasia fossasia deleted a comment Jul 3, 2019
@kushthedude kushthedude requested a review from niranjan94 July 3, 2019 16:59
abhinavk96
abhinavk96 previously approved these changes Jul 4, 2019
@fossasia fossasia deleted a comment Jul 4, 2019
@fossasia fossasia deleted a comment Jul 4, 2019
@kushthedude
Copy link
Member Author

@niranjan94 @CosmicCoder96 Please Review !

@fossasia fossasia deleted a comment Jul 5, 2019

getRemainingTime: computed('data', function() {
let orderExpiryTime = this.get('data.event.orderExpiryTime');
getRemainingTime: computed('settings', function() {
Copy link
Member

Choose a reason for hiding this comment

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

The computed property should be observing everything you are using. settings.orderExpiryTime, data.createdAt and data.identifier.

Please pay more attention to detail


getRemainingTime: computed('data', function() {
let orderExpiryTime = this.get('data.event.orderExpiryTime');
getRemainingTime: computed('settings', function() {
Copy link
Member

Choose a reason for hiding this comment

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

And what is this computer property returning ? I see no return statement at all.

Copy link
Member Author

Choose a reason for hiding this comment

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

@niranjan94 , Same but it was implemented earlier this way, It's just used to calculate remaining time and this calls timer in it to calculate, But still no return it has

Copy link
Member Author

Choose a reason for hiding this comment

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

@niranjan94 I tried to return getRemaining but alas it was of no use due to the re-rendering of a rendered value, That's why I think this.set is used to overcome this challenge

Copy link
Member

Choose a reason for hiding this comment

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

This is very incorrect usage of a computed property. And a computed property should also never be reset by something else. Please refactor this correctly.


getRemainingTime: computed('data', function() {
let orderExpiryTime = this.get('data.event.orderExpiryTime');
getRemainingTime: computed('settings', function() {
Copy link
Member

Choose a reason for hiding this comment

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

This is very incorrect usage of a computed property. And a computed property should also never be reset by something else. Please refactor this correctly.

@fossasia fossasia deleted a comment Jul 9, 2019
@shreyanshdwivedi
Copy link
Member

@kushthedude any update on this?

@kushthedude kushthedude deleted the expiry branch July 13, 2019 21:49
@kushthedude
Copy link
Member Author

I don't know what went wrong, All of my opened PR's are orphan, Will open a new one with a response to it

@kushthedude
Copy link
Member Author

Closed in favour of #3283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move registration time limit to admin settings and set standard to 15 minutes

4 participants