Mailinglist Archive: yast-devel (126 mails)

< Previous Next >
Re: [yast-devel] WebYaST: Only write back actual changes !
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Fri, 13 Nov 2009 17:13:57 +0100
  • Message-id: <200911131713.57260.jreidinger@xxxxxxx>
Josef Reidinger write:
Duncan Mac-Vicar Prett write:
On Friday 13 November 2009 16:19:09 Josef Reidinger wrote:
I think this is general issue of all rest modules as we don't check
previous status. Also we don't make difference between create and
update call to rest- service.

I don't know patterns to solve this problem, but one option could be to
use a jQuery plugin to make the forms dirty, that way we can highlight
what the user changed, and enable/disable the save button
s- bring-attention-to-changed-unsaved-fields
(you have to look in the comments where he comments the formIsDirty

Now, network saves when one press next button, but there should be a way
of passing this dirty value forwards.


I think it should not be job for javascript. I think that his should solve
ActiveResource. If you use find...and then call update and values doesn't
change should not be sent back (not have enough rest knowledge to find
recommended way).

few sources for partial rest update:

so I feel, that problem is that there is no unified way, but I think that if
we send only changed elements to rest-service it is quite good way.

Josef Reidinger
YaST team
maintainer of perl-Bootloader, YaST2-Repair, webyast
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups