Giter Club home page Giter Club logo

Comments (9)

atomrab avatar atomrab commented on June 24, 2024

I also appear as logged in on the settings page, but when I reload the review page, it doesn't recognize me as logged in.

from periodo-client.

atomrab avatar atomrab commented on June 24, 2024

"Accept changes?" module appears in Chrome incognito window, but same error as in #304 appears when I attempt to accept the changes.

from periodo-client.

rybesh avatar rybesh commented on June 24, 2024

What do you see when you go to this page?

https://client.perio.do/?page=backend-edit&backendID=web-https%3A%2F%2Fdata.perio.do%2F

from periodo-client.

rybesh avatar rybesh commented on June 24, 2024

Ah, I see now you said the settings page shows you as logged in. Try clicking the "sign out" link, then signing in again.

from periodo-client.

rybesh avatar rybesh commented on June 24, 2024

Note that you can only be logged in to PeriodO from one browser at a time. When you log in, a token is stored in your browser. Logging in from another browser invalidates that token, and creates a new token which is stored in the 2nd browser. If you then go back to the 1st browser, it will think it is logged in (because it has a token) but attempts to submit or accept changes will fail (because the token is no longer valid). Signing out and signing in again should give you a new valid token.

I'm not entirely sure why the settings page shows you as logged in, though, I will have to look into that.

from periodo-client.

rybesh avatar rybesh commented on June 24, 2024

If I log into Chrome and go to the review changes page, then log in from another browser, and then go back to the settings page in Chrome, it correctly shows me as logged out. So I'm not entirely sure what's going on here. It would be helpful to watch you do this over Zoom with the Chrome developer tools open.

from periodo-client.

rybesh avatar rybesh commented on June 24, 2024

OK, I think I see what the issue is. It's possible to

  1. visit the patch review page
  2. leave the page (i.e. to go to the backend settings page)
  3. logged-in status changes (i.e. sign in or sign out)
  4. return to patch review page, but it now has a stale mergeURL value because GetPatchRequest is not dispatched again when the patch review page is visited the 2nd time.

As a result one can be logged-in and not see the Accept changes? form (because mergeURL has a stale null value), or one can be logged-out and see the Accept changes? form (which will fail if used, because mergeURL has a stale non-null value).

from periodo-client.

rybesh avatar rybesh commented on June 24, 2024

Workaround for now when you're getting this problem: do a Reload This Page (⌘R on macOS) on the patch review page, and it should correctly refresh the mergeURL and hence properly show/hide the Accept changes? form. Doing this will not affect your stored data, it just does a reload of the page.

from periodo-client.

rybesh avatar rybesh commented on June 24, 2024

Fixed by #305 and deployed to production.

from periodo-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.