Skip to content

Conversation

@Saumyachitransh01
Copy link
Member

Fixes #1519

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)

@vercel
Copy link

vercel bot commented Jan 8, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/65z59ofwk
✅ Preview: https://open-event-frontend-git-fork-saumyachitransh01-sendaction.eventyay.now.sh

if (valid) {
this.set('data.event.state', 'draft');
this.sendAction('save');
this.save();
Copy link
Member

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)

Copy link
Member Author

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?

Copy link
Member

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
Copy link

codecov bot commented Jan 9, 2021

Codecov Report

Merging #6276 (0e2aa5a) into development (2e32e93) will increase coverage by 0.13%.
The diff coverage is 0.00%.

Impacted file tree graph

@@               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              
Impacted Files Coverage Δ
app/components/account/password-section.js 25.00% <0.00%> (ø)
app/components/modals/add-system-role-modal.js 33.33% <0.00%> (ø)
app/components/modals/add-user-role-modal.js 37.50% <0.00%> (ø)
.../modals/admin/content/new-event-sub-topic-modal.js 25.00% <0.00%> (ø)
...ents/modals/admin/content/new-event-topic-modal.js 33.33% <0.00%> (ø)
...nents/modals/admin/content/new-event-type-modal.js 33.33% <0.00%> (ø)
.../components/modals/confirm-event-transfer-modal.js 0.00% <0.00%> (ø)
app/components/nav-bar.js 33.33% <0.00%> (ø)
app/components/side-bar.js 78.94% <0.00%> (ø)
app/components/widgets/forms/date-picker.js 66.66% <0.00%> (ø)
... and 13 more

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 2e32e93...0e2aa5a. Read the comment docs.

@iamareebjamal
Copy link
Member

@maze-runnar @sachinchauhan2889 Status of review?

submit(data) {
this.onValid(() => {
this.sendAction('save', data);
this.save(data);
Copy link
Contributor

Choose a reason for hiding this comment

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

Uncaught TypeError: _this.save is not a function

Screenshot from 2021-01-12 16-49-56

Copy link
Contributor

@sachinchauhan2889 sachinchauhan2889 left a 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 changes.

discount code form is not working.
access code form is not working.
order form is not working.

all are throwing this error in console.
review new

submit() {
this.onValid(() => {
this.sendAction('save');
this.save();
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot from 2021-01-12 16-50-50

actions: {
submit() {
this.sendAction('save');
this.save();
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot from 2021-01-12 16-51-25

submit() {
this.onValid(() => {
this.sendAction('save');
this.save();
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot from 2021-01-12 16-52-25

});
}
this.sendAction('save');
this.save();
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot from 2021-01-12 16-53-17

submit() {
this.onValid(() => {
this.sendAction('save');
this.save();
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot from 2021-01-12 16-54-13

submit(data) {
this.onValid(() => {
this.sendAction('save', data);
this.save(data);
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot from 2021-01-12 16-55-33

submit(data) {
this.onValid(() => {
this.sendAction('save', data);
this.save(data);
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot from 2021-01-12 16-56-56

Copy link
Contributor

@sachinchauhan2889 sachinchauhan2889 left a 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.

@iamareebjamal iamareebjamal changed the title removing sendAction() chore: remove sendAction() Jan 17, 2021
@auto-label auto-label bot added the chore label Jan 17, 2021
@iamareebjamal iamareebjamal merged commit 2bf1209 into fossasia:development Jan 17, 2021
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.

Use closure actions instead of sendAction in the project.

5 participants