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

Unable to open fulfill order action view #2142

Closed
spencern opened this issue Apr 19, 2017 · 15 comments
Closed

Unable to open fulfill order action view #2142

spencern opened this issue Apr 19, 2017 · 15 comments
Assignees
Labels
bug For issues that describe a defect or regression in the released software verified reproducible For issues that describe bugs that the core team was able to confirm

Comments

@spencern
Copy link
Contributor

spencern commented Apr 19, 2017

Steps to reproduce

  1. Clone release-1.1.1
  2. reaction reset
  3. meteor npm install
  4. reaction run
  5. setup stripe & enable all three default Flat Rate shipping options
  6. Place Order from incognito window
  7. Click into order from notifications panel
  8. Attempt to fulfill order

No console errors were shown when attempting to fulfill order, but dashboard action panel appears empty and when clicking the <- back arrow throws the following error.

main.js:354 Uncaught TypeError: Cannot read property 'pop' of undefined
    at Object.popActionView (http://localhost:3000/app/app.js?hash=cefcfaa4796cc18f5ea7d77d168df51176564e34:66581:20)
    at Object.handleActionViewBack [as onClick] (http://localhost:3000/app/app.js?hash=cefcfaa4796cc18f5ea7d77d168df51176564e34:30053:12)
    at Button._this.handleClick (http://localhost:3000/app/app.js?hash=cefcfaa4796cc18f5ea7d77d168df51176564e34:39219:21)
    at Object.ReactErrorUtils.js.ReactErrorUtils.invokeGuardedCallback (http://localhost:3000/packages/modules.js?hash=f8877f8ddab1183cef2c3299adca352ccd2d7707:119400:16)
    at executeDispatch (http://localhost:3000/packages/modules.js?hash=f8877f8ddab1183cef2c3299adca352ccd2d7707:119180:21)
    at Object.executeDispatchesInOrder (http://localhost:3000/packages/modules.js?hash=f8877f8ddab1183cef2c3299adca352ccd2d7707:119203:5)
    at executeDispatchesAndRelease (http://localhost:3000/packages/modules.js?hash=f8877f8ddab1183cef2c3299adca352ccd2d7707:118587:22)
    at executeDispatchesAndReleaseTopLevel (http://localhost:3000/packages/modules.js?hash=f8877f8ddab1183cef2c3299adca352ccd2d7707:118598:10)
    at Array.forEach (native)
    at forEachAccumulated (http://localhost:3000/packages/modules.js?hash=f8877f8ddab1183cef2c3299adca352ccd2d7707:119507:9)

Which is throwing an error from here:

 popActionView: function () {                                                                                         //
    var actionViewStack = Session.get("admin/actionView");                                                             //
    actionViewStack.pop();                                                                                             // 354
    Session.set("admin/actionView", actionViewStack);                                                                  //
    this.setActionViewDetail({}, {                                                                                     //
      open: false                                                                                                      // 358
    });                                                                                                                //
  },     

image

@aaronjudd
Copy link
Contributor

aaronjudd commented Apr 19, 2017

I've been able to replicate when using a) no reaction.json b) clicking notification -> order. The entire adminActionView history becomes corrupt. looks like

"profile" : {
        "preferences" : {
            "reaction-orders" : {
                "orderListFilters" : "processing",
                "orderListSelectedOrder" : null
            },

we need to test and ensure that this is a regression and not introduced in #2117

@spencern
Copy link
Contributor Author

I've just confirmed that this issue is reproducible on master, so it seems like a bug that has existed for a few releases and is not introduced in 1.1.1.

@spencern spencern added the verified reproducible For issues that describe bugs that the core team was able to confirm label Apr 19, 2017
@aaronjudd aaronjudd added this to the v1.2.x milestone Apr 19, 2017
@aaronjudd aaronjudd added the bug For issues that describe a defect or regression in the released software label Apr 25, 2017
@aaronjudd
Copy link
Contributor

Closing in favor of #2136

@zenweasel
Copy link
Collaborator

Actually closing

@zenweasel
Copy link
Collaborator

zenweasel commented May 17, 2017

I will have @michael-alade look at this issue now and reopen if it's still happening

@kieckhafer
Copy link
Member

kieckhafer commented May 17, 2017

Please check on the release-1.2 branch, not development, this seems related to what I fixed with the notifications opening the Orders dashboard in the wrong window ( #2280 ).

@zenweasel
Copy link
Collaborator

We have been on release-1.2

@michael-alade
Copy link

This issue has already been fixed on release-1.2.

@zenweasel
Copy link
Collaborator

This is not fixed. Reopening

@zenweasel
Copy link
Collaborator

Reopening. Ran into this while testing the dependency PR.

The key part of the duplication steps is "Click into order from notifications panel". It's going from that panel to the orders panel that is causing the problem

@zenweasel
Copy link
Collaborator

Specifically reopening this instead of #2136 per @spencern comment

@kieckhafer
Copy link
Member

This was fixed at some point with #2280 , did you just see this occurring right now (in the last few hours), or has it been longer than that?

I just pulled in a router fix for a different issue ( #2476 ), perhaps that re-broke it:?

@zenweasel
Copy link
Collaborator

I just saw this two hours ago when I reported it.

@kieckhafer
Copy link
Member

Ok... well it's highly possible these two things are related then... todays PR merge fixes a much more serious problem though so we want to keep that pulled in and re-fix this issue I guess.

@zenweasel
Copy link
Collaborator

Closed via #2530

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For issues that describe a defect or regression in the released software verified reproducible For issues that describe bugs that the core team was able to confirm
Projects
None yet
Development

No branches or pull requests

7 participants