Comments (4)
The problem is that when the reload is finished while the user is changing some data it would get overwritten by the reload.. @4pp-Engine: any idea on how to prevent that behaviour?
from stundenstein.
You could show a dialog (like ErrorDialog) In/which you explain to the user, that the data has beem changed outside the app und inside the app and let the user choose which of both he wants to keep.
(Show the data of both, so he can see the difference)
from stundenstein.
Or you override the local data by the data of the server.
I think it should be clear, that the user should modify the data on different places..
from stundenstein.
I don't think the first idea works in this case, because what should happen when for example the tracker has been stopped from outside and the user selects to keep the data.. That would cause unneccessary conflicts etc..
Second solution is what I wanted to do.. I just have to take care that those updates don't interfere with updates the user sends to the APIs (like stopping, modifiying etc).. Then I should be able to compare the server data with the local each field seperately and only change the local value to the server value if different (and if the system isn't updating anything via the APIs in that moment)
from stundenstein.
Related Issues (20)
- TimeLogComponent: End time is shown as start time
- RecentTimeLogsComponent: Duplicates of some Time Logs shown HOT 1
- TimeTrackerComponent: Lock component interaction until tracker is loaded
- feature/URCPerformance
- TimeTrackerComponent: Cannot Stop TimeTracker HOT 1
- UserReportsComponent: Sort Projects
- TimeTrackerComponent: Bug stopping TimeTracker after negative time
- TimeTrackerComponent: Only use most recent logs in comment AC for performance reasons
- TimeTrackerComponent: Project AC: Show last used projects first HOT 1
- TimeTrackerComponent: Check if update of tracker is necessary before stopping it
- RecentTimeLogsComponent: Lock "load more" button after click
- feature/URCPerformance: bubble shows NaN when only one non billable project for this period exists
- feature/URCPerformance: dont show month/last month in mat-select & show total time
- testing/URC: implement some tests for UserReportsComponent
- feature/URCPerformance: over midnight timelogs are shown only for period which suits to timeStopped
- feature/URCPerformance: fix detection change bug
- TimeLogComponent: Fix ErrorService
- TimeLogComponent: Write tests
- Update README HOT 1
- Editing Time Entries does no longer work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stundenstein.