Chart Search Module
  1. Chart Search Module
  2. CSM-72

All chartsearch controller method calls using Ajax need to redirect to login page if logged out

    Details

    • Complexity:
      Undetermined

      Description

      In my own POV, am making almost all calls to the server using Ajax, this is better experience and comes with it lots of advantages. However the failure to return data from the server because the user was logged out makes the page useless.

      The aim of this ticket is to modify all methods in all controllers that are connected to by ajax calls to redirect the user to the login page in-case the user is logged out. The user is automatically logged out of openmrs after some time of in-activity.

      It needs to likewise Reload the page whenever there's an error at server level

        Gliffy Diagrams

          Activity

          Hide
          Kaweesi Joseph added a comment -

          Another bug is when loading some CSM pages when user is not logged in such as: .../chartsearch/chartSearchManager.page#bookmarks
          which is: http://pastebin.com/443dVjHb

          Show
          Kaweesi Joseph added a comment - Another bug is when loading some CSM pages when user is not logged in such as: .../chartsearch/chartSearchManager.page#bookmarks which is: http://pastebin.com/443dVjHb
          Hide
          Kaweesi Joseph added a comment -

          Just done the fix at client level; Merged into master at: 2043918 Works pretty fine; Re-directs to the login page whenever user does any thing that calls into the server, and after a successful login brings the user back to the chartsearch page where he/she was

          Show
          Kaweesi Joseph added a comment - Just done the fix at client level; Merged into master at: 2043918 Works pretty fine; Re-directs to the login page whenever user does any thing that calls into the server, and after a successful login brings the user back to the chartsearch page where he/she was

            People

            • Assignee:
              Kaweesi Joseph
              Reporter:
              Kaweesi Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development