- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.8k
chore: remove sendAction() #6276
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
chore: remove sendAction() #6276
Conversation
| This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/65z59ofwk | 
        
          
                app/mixins/event-wizard.js
              
                Outdated
          
        
      | if (valid) { | ||
| this.set('data.event.state', 'draft'); | ||
| this.sendAction('save'); | ||
| this.save(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sendAction is not working at some places but closures work well.
eg - event creation failed at step 1
Please refer the error #6203 (review)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should I revert changes for step 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, test all changes and revert whatever is not working
| Codecov Report
 @@               Coverage Diff               @@
##           development    #6276      +/-   ##
===============================================
+ Coverage        22.58%   22.71%   +0.13%     
===============================================
  Files              519      520       +1     
  Lines             5704     5745      +41     
  Branches           112      113       +1     
===============================================
+ Hits              1288     1305      +17     
- Misses            4389     4413      +24     
  Partials            27       27              
 Continue to review full report at Codecov. 
 | 
| @maze-runnar @sachinchauhan2889 Status of review? | 
| submit(data) { | ||
| this.onValid(() => { | ||
| this.sendAction('save', data); | ||
| this.save(data); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| submit() { | ||
| this.onValid(() => { | ||
| this.sendAction('save'); | ||
| this.save(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| actions: { | ||
| submit() { | ||
| this.sendAction('save'); | ||
| this.save(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| submit() { | ||
| this.onValid(() => { | ||
| this.sendAction('save'); | ||
| this.save(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| }); | ||
| } | ||
| this.sendAction('save'); | ||
| this.save(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| submit() { | ||
| this.onValid(() => { | ||
| this.sendAction('save'); | ||
| this.save(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| submit(data) { | ||
| this.onValid(() => { | ||
| this.sendAction('save', data); | ||
| this.save(data); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| submit(data) { | ||
| this.onValid(() => { | ||
| this.sendAction('save', data); | ||
| this.save(data); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked all non-admin routes. working fine.









Fixes #1519
Checklist
developmentbranch.