Skip to content

Intermittent weird issues with the "Save" button for programs and studies. #58

Closed as not planned

Description

@pradeeban

Sometimes, the "Save" button (for both studies and programs) expect to be clicked thrice to save a program or a study.
Once, it threw a "Switch to Edge/Chrome!" while I was trying to save a program on Chrome on MacOS. The cache is cleared.

See the Screenshot.

Activity

  1. changed the title [-]Intermittent weird issues with the "Save" button[/-] [+]Intermittent weird issues with the "Save" button for programs and studies.[/+] on Nov 3, 2022
  2. Aviral09 commented on Nov 3, 2022

    @Aviral09

    This is unexpected behaviour. However, I believe it is due to the time it takes to detect which browser you're using.

    As soon as it detects the user is using Chrome, it replaces the old version "Upload directory" button with the new version button. This process is almost instantaneous (making use of useEffect in React).

    But sometimes, due to unforeseen reasons, this update may take a little longer and thus, in between, if the user clicks the button, it defaults to the firefox behaviour.

    I will perform more testing and look for a workaround; in the general case, it won't happen however.

  3. parteekcoder commented on Feb 6, 2023

    @parteekcoder

    @pradeeban is this issue still opened or closed as there is a PR for this

  4. pradeeban commented on Feb 7, 2023

    @pradeeban
    MemberAuthor

    This is still open.

  5. parteekcoder commented on Feb 7, 2023

    @parteekcoder

    @pradeeban i have a created a PR for this issue and now it is correctly saving files

    Actually the issue was in save function graph donot have fileHandle key so that's why entering else section

  6. parteekcoder commented on Feb 7, 2023

    @parteekcoder

    @pradeeban added all extensions and now you can check

  7. parteekcoder commented on Feb 10, 2023

    @parteekcoder

    hey @pradeeban please review now , it is working on all browser

  8. pradeeban commented on Feb 10, 2023

    @pradeeban
    MemberAuthor

    It is confusing what is going on here. @Aviral09 implemented this for Chrome and it works fine except for intermittent issues on Chrome.

    @Aviral09 pls review @parteekcoder's pull request if you have time.

  9. Aviral09 commented on Feb 11, 2023

    @Aviral09

    Okay I will review the same.

  10. parteekcoder commented on Feb 11, 2023

    @parteekcoder

    hey @Aviral09 please tell me what's wrong so that I can correct , you can fork my branch and check after deploy

  11. pradeeban commented on Feb 25, 2023

    @pradeeban
    MemberAuthor

    Couldn't reproduce as lately with @Rahuljagwani's fixes #103. Closing as "Cannot reproduce" for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions