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

Implemented: Feature to run scheduled job right away(#364ttgf) #211

Merged
merged 8 commits into from
Aug 17, 2022

Conversation

shashwatbangar
Copy link
Contributor

@shashwatbangar shashwatbangar commented Aug 3, 2022

Related Issues

Closes #

Short Description and Why It's Useful

Screenshots of Visual Changes before/after (If There Are Any)

Screen.Recording.2022-08-08.at.12.48.28.PM.mov

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

src/components/JobActionsPopover.vue Outdated Show resolved Hide resolved
src/components/JobActionsPopover.vue Outdated Show resolved Hide resolved
},
async runJobNow(job: any) {
if(job) {
await this.store.dispatch('job/runServiceNow', job)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should handle setting productStoreId from job instead of state value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes sir. Understood as we discussed. Fixing it

Copy link
Contributor

Choose a reason for hiding this comment

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

Check if we need to handle for shopifyConfigId as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sir shopifyConfigId never comes from job, thus I guess it is okay to always set it from userState

},
async runJobNow(job: any) {
if(job) {
await this.store.dispatch('job/runServiceNow', job)
Copy link
Contributor

Choose a reason for hiding this comment

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

Check if we need to handle for shopifyConfigId as well

@dt2patel
Copy link
Contributor

We should also add a confirmation alert that asks the user if they are sure they want run now.
Alert has been added in Figma.

@shashwatbangar
Copy link
Contributor Author

We should also add a confirmation alert that asks the user if they are sure they want run now.
Alert has been added in Figma.

Done sir. Added an alert to confirm to run job immediately.

'systemJobEnumId': job.systemJobEnumId,
'tempExprId': job.jobStatus, // Need to remove this as we are passing frequency in SERVICE_TEMP_EXPR, currently kept it for backward compatibility
'parentJobId': job.parentJobId,
'recurrenceTimeZone': this.state.user.current.userTimeZone
},
'shopifyConfigId': this.state.user.shopifyConfigId,
'shopifyConfigId': job.shopifyConfigId ? job.shopifyConfigId : this.state.user.shopifyConfigId,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'shopifyConfigId': job.shopifyConfigId ? job.shopifyConfigId : this.state.user.shopifyConfigId,
'shopifyConfigId': job.status === "SERVICE_PENDING" ? job.shopifyConfigId : this.state.user.shopifyConfigId,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok sir. Fixed it.

@adityasharma7 adityasharma7 merged commit 1dfe7eb into hotwax:main Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants