ecamp / ecamp3

eCamp v3 is a web-based app for camp and course planning. The application is specialized for camps and courses of youth associations and for Y+S offers in the sport of camp sports/trekking.
https://ecamp3.ch
GNU Affero General Public License v3.0
110 stars 48 forks source link

ApiWrapper dirty flag handling #2578

Open BacLuc opened 2 years ago

BacLuc commented 2 years ago

Vorschlag:

this.dirty = this.dirty || this.localValue !== this.apiValue

_Originally posted by @pmattmann in https://github.com/ecamp/ecamp3/pull/2572#discussion_r848768966_

  1. Specify how ApiWrapper should handle beeing dirty
    • Proposal by @usu: similar behaviour like the drag and drop of contentnodes and waiting for the last request
  2. Adapt the tests (maybe refactoring) that they reflect the specification
  3. Implement the behaviour specified in the tests
  4. Test in the frontend that the specified behaviour matches the needs of the users
  5. Maybe adapt the tests
  6. Implement
  7. Repeat from 4
usu commented 3 months ago

Point 1 (behavior specification)

Initial behavior

Editing

onBlur