Menu

#1609 (ok 4.5) Additional page locking

Next_release
resolved
None
Normal
2015-03-15
2015-02-24
No

When making changes to a page, we lock the page so that the user is prompted before navigating away and losing pages. This feature is established and works as expected.

There are several pages where the lock behavior does not occur and I feel it should:

  • Structure tab (both Table structure and Relation view)
  • SQL tab
  • Search tab
  • Query tab

Related

Feature Requests: #1609

Discussion

  • tapanhalani

    tapanhalani - 2015-03-03

    I am able to reproduce it for all the above except for SQL tab. While I try to navigate away having written a query in query-box, it prompts me of unsaved changes and whether or not to leave the page.

    Can I try implementing it?

     
    • Isaac Bennetch

      Isaac Bennetch - 2015-03-03

      Interesting, I'm working with master and have just tried again and still do not get any prompt before navigating away from the SQL tab. This may require further investigation.

      Anyway, yes, you're welcome to work on this as it's not assigned to anyone (the "Owner" field).

       
  • tapanhalani

    tapanhalani - 2015-03-04

    Well,

    I solved it for the sql tab,search tab and the query tab. Apparently, I just had to add a class "lock-page" in the form elements in the page.

    I wanted to ask that the current functionality of lock-page mechanism works only if we edit any text-area or text input element in the form . What about other fields in the form, like selection list and check-boxes? It may happen that the user might have just checked an unchecked box , without editing the text area.So should I also implement the changes for them too?

     
    • Marc Delisle

      Marc Delisle - 2015-03-05

      This would be a good idea.

       
  • tapanhalani

    tapanhalani - 2015-03-05

    I have solved the issue for all the tabs listed above. But the current functionality works only if we are editing textareas or text-input boxes.

    I think we should extend this for check-boxes, radio-buttons and other page elements also. What do you think?

     
  • tapanhalani

    tapanhalani - 2015-03-11

    Sorry for the delay in implementing this, as I had other commitments.

    I have implemented the above feature for all page elements of all the above mentioned pages. In which branch should I push my commits?

     
    • Marc Delisle

      Marc Delisle - 2015-03-11

      As 4.4 is feature-frozen, use the master branch.

       
      • tapanhalani

        tapanhalani - 2015-03-11

        I tried to push my changes to master branch, but my local branch is not
        getting merged successfully with local master branch. I will try fix it.

        Meanwhile, I have pushed the commit to QA_4_3 for safety and created a pull
        request.
        Is it ok?

        On Wed, Mar 11, 2015 at 11:52 PM, Marc Delisle lem9@users.sf.net wrote:

        As 4.4 is feature-frozen, use the master branch.

        Status: open
        Group: Needs_decision
        Created: Tue Feb 24, 2015 08:00 PM UTC by Isaac Bennetch
        Last Updated: Wed Mar 11, 2015 02:29 PM UTC
        Owner: nobody

        When making changes to a page, we lock the page so that the user is
        prompted before navigating away and losing pages. This feature is
        established and works as expected.

        There are several pages where the lock behavior does not occur and I feel
        it should:

        • Structure tab (both Table structure and Relation view)
        • SQL tab
        • Search tab
        • Query tab

        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/phpmyadmin/feature-requests/1609/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Feature Requests: #1609

        • tapanhalani

          tapanhalani - 2015-03-12

          So that means that i should remove this feature from database pages and
          implement it to all the before-mentioned pages for table structure?

          Please check out my pull request in which i have made changes only for
          database ,and see if you want to keep them or not.

          For tables ,it is easy and will solve it today.
          On Mar 12, 2015 4:01 AM, "tapanhalani" tapanhalani@users.sf.net wrote:

          I tried to push my changes to master branch, but my local branch is not
          getting merged successfully with local master branch. I will try fix it.

          Meanwhile, I have pushed the commit to QA_4_3 for safety and created a pull
          request.
          Is it ok?

          On Wed, Mar 11, 2015 at 11:52 PM, Marc Delisle lem9@users.sf.net wrote:

          As 4.4 is feature-frozen, use the master branch.

          Status: open
          Group: Needs_decision
          Created: Tue Feb 24, 2015 08:00 PM UTC by Isaac Bennetch
          Last Updated: Wed Mar 11, 2015 02:29 PM UTC
          Owner: nobody

          When making changes to a page, we lock the page so that the user is
          prompted before navigating away and losing pages. This feature is
          established and works as expected.

          There are several pages where the lock behavior does not occur and I feel
          it should:

          • Structure tab (both Table structure and Relation view)
          • SQL tab
          • Search tab
          • Query tab

          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/phpmyadmin/feature-requests/1609/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/


          Status: open
          Group: Needs_decision
          Created: Tue Feb 24, 2015 08:00 PM UTC by Isaac Bennetch
          Last Updated: Wed Mar 11, 2015 02:29 PM UTC
          Owner: nobody

          When making changes to a page, we lock the page so that the user is
          prompted before navigating away and losing pages. This feature is
          established and works as expected.

          There are several pages where the lock behavior does not occur and I feel
          it should:

          • Structure tab (both Table structure and Relation view)
          • SQL tab
          • Search tab
          • Query tab

          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/phpmyadmin/feature-requests/1609/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

           

          Related

          Feature Requests: #1609

        • tapanhalani

          tapanhalani - 2015-03-11

          Marc,

          Was the above feature for table structure or for database ? Because I
          implemented it for database, not for table. While after reading the
          statement again, this doubt arised .

          However, it won't take much time to implement it to tables strucuture, as I
          have already implemented it for database.

          On Thu, Mar 12, 2015 at 2:56 AM, Tapan Halani tapanhalani231@gmail.com
          wrote:

          I tried to push my changes to master branch, but my local branch is not
          getting merged successfully with local master branch. I will try fix it.

          Meanwhile, I have pushed the commit to QA_4_3 for safety and created a
          pull request.
          Is it ok?

          On Wed, Mar 11, 2015 at 11:52 PM, Marc Delisle lem9@users.sf.net wrote:

          As 4.4 is feature-frozen, use the master branch.

          Status: open
          Group: Needs_decision
          Created: Tue Feb 24, 2015 08:00 PM UTC by Isaac Bennetch
          Last Updated: Wed Mar 11, 2015 02:29 PM UTC
          Owner: nobody

          When making changes to a page, we lock the page so that the user is
          prompted before navigating away and losing pages. This feature is
          established and works as expected.

          There are several pages where the lock behavior does not occur and I feel
          it should:

          • Structure tab (both Table structure and Relation view)
          • SQL tab
          • Search tab
          • Query tab

          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/phpmyadmin/feature-requests/1609/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

           

          Related

          Feature Requests: #1609

  • tapanhalani

    tapanhalani - 2015-03-12

    Hi Marc,

    I have successfully implemented the above feature for all the above tabs in table structure and also the query tab of database view. Is there anything else that I am missing regarding this feature?

    Now the page will lock navigation upon changing any element of the page.

     
    • Marc Delisle

      Marc Delisle - 2015-03-12

      Hi Tapan,
      locking dropdowns is still under discussion.

       
      • tapanhalani

        tapanhalani - 2015-03-12

        I wiuld remove it from the code.. Anything else?

         
  • tapanhalani

    tapanhalani - 2015-03-12

    pull request:- https://github.com/phpmyadmin/phpmyadmin/pull/1572

    As you said, it is in master branch.

     
  • Marc Delisle

    Marc Delisle - 2015-03-15
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2015-03-15
    • summary: Lock page navigation when entering data --> Additional page locking
    • Group: Needs_decision --> Next_release
     
  • Marc Delisle

    Marc Delisle - 2015-03-15
    • summary: Additional page locking --> (ok 4.5) Additional page locking
    • status: open --> resolved
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.