summaryrefslogtreecommitdiffstats
path: root/common/resourcefacade.cpp
Commit message (Collapse)AuthorAge
* Implement Overlap queriesRémi Nicole2018-06-19
| | | | | | | | | | | | | | | | | | | | Summary: Notes: - Introduces the concept of queries on multiple properties (which meant changing query's internals a bit) - Dates are stored as well as the "reference" in the index to allow quick filtering without fetching the whole entity - Buckets are weeks starting on Monday (guaranteed by the use of the Julian calendar) - Some size improvements are definitely possible (dates are padded numbers again, not using integer databases, Julian calendar starts at a very old date, etc.) Test Plan: Tested in querytest Reviewers: cmollekopf Reviewed By: cmollekopf Tags: #sink Differential Revision: https://phabricator.kde.org/D13477
* Fixed more warnings and then disabled themChristian Mollekopf2018-03-25
| | | | ..because there is a boatload more to fix.
* No parent queryChristian Mollekopf2018-01-02
|
* Ensure we monitor resources for status changes that have been createdChristian Mollekopf2017-09-02
| | | | | | after the query. This fixes status monitoring when creating a new account.
* Only return connected if there is any resource connected.Christian Mollekopf2017-08-26
|
* Don't add resources that don't match the query during a livequeryChristian Mollekopf2017-05-12
|
* No more SINK_DEBUG_AREAChristian Mollekopf2017-05-12
|
* Make the offline status higher priorityChristian Mollekopf2017-05-10
| | | | | Some resources always claim to be online, so the ones offline are relevant.
* Removed unused headersChristian Mollekopf2017-05-09
|
* Better account status aggregation.Christian Mollekopf2017-04-07
| | | | | | | | | | | | | | | | | | | | | | | Only ever enter error state on non-recoverable errors. Otherwise: * Busy state while busy, then go back to online/offline/error. * If we failed connect during replay/sync we assume we're offline. * If we failed to login but could connect we have a known error condition. * If we succeeded to replay/sync something we are apprently online. At the core we have the problem that we have no way of telling wether we can connect to the server until we actually try (network is not enough: vpns, firewalls, ....). Further the status always reflects the latest status, so even if we were in an error state, once we retry we go out of the error state and either end up back in the error state or not. When aggregating states we have to similarly adjust the state to the most relevant among the resources. The states are ordered like this: * Error * Busy * Connected * Offline
* Always request properties we use and in turn avoid getting errorsChristian Mollekopf2017-03-14
| | | | | ...by setting dummy values for properties we do not actually have set in the config.
* Port away from syncStartv0.1.0Christian Mollekopf2017-03-02
|
* Avoid unnecessary warningsChristian Mollekopf2017-01-05
|
* Remove resources and identities with the accountChristian Mollekopf2017-01-05
|
* Introduced Log::ContextChristian Mollekopf2016-12-22
| | | | | | | To have hierarchical debug output we have to pass around something at run-time, there is no reasonable alternative. Log::Context provides the identifier to do just that and largely replaces the debug component idea.
* Report when we don't have any more to fetch.Christian Mollekopf2016-12-20
| | | | ... so we can use that information in fetchMore.
* Don't set capabilities as property on creation.Christian Mollekopf2016-12-15
| | | | | | Instead we make it part of the plugin. This ensure we also have access to the proper capabilities when creating a resource via sinksh.
* Copy command and proper moveChristian Mollekopf2016-12-04
|
* interresource moveChristian Mollekopf2016-12-02
|
* Don't expose the live query flag directly.Christian Mollekopf2016-11-04
|
* Specify base set as part of the filter stages in the query.Christian Mollekopf2016-10-05
|
* Store the resource/account type as just "type"Christian Mollekopf2016-10-04
| | | | | We use the resource/account prefix only because just "Type" would conflict with the typedef.
* Don't hardcode the type property.Christian Mollekopf2016-09-27
|
* Don't access the propertyFilter list directly.Christian Mollekopf2016-09-27
|
* Ported to the kasync revampChristian Mollekopf2016-09-15
|
* React to new resourcesChristian Mollekopf2016-07-12
|
* Account statusChristian Mollekopf2016-07-08
|
* A new debug system.Christian Mollekopf2016-07-07
| | | | | | | | | | | | | | | Instead of a single #define as debug area the new system allows for an identifier for each debug message with the structure component.area. The component is a dot separated identifier of the runtime component, such as the process or the plugin. The area is the code component, and can be as such defined at compiletime. The idea of this system is that it becomes possible to i.e. look at the output of all messages in the query subsystem of a specific resource (something that happens in the client process, but in the resource-specific subcomponent). The new macros are supposed to be less likely to clash with other names, hence the new names.
* Delete the resource data via resource process.Christian Mollekopf2016-07-07
|
* CleanupChristian Mollekopf2016-07-07
|
* Disconnect one the object is gone.Christian Mollekopf2016-07-07
|
* Removed another memory leakChristian Mollekopf2016-07-07
|
* Apply the status to resourcesChristian Mollekopf2016-07-06
|
* Catch errorsChristian Mollekopf2016-06-21
|
* Fixed LocalStorageFacade.Christian Mollekopf2016-06-15
| | | | | We can't make any assumptions about the lifetime of the facade, so make sure we have all we need in the lambda.
* Fixed issues found by clang analyzerChristian Mollekopf2016-06-14
|
* Fixed resource property filteringChristian Mollekopf2016-05-10
|
* Account filter for resources and contains comparator in queryChristian Mollekopf2016-05-01
|
* Stop abusing the identifier propertyChristian Mollekopf2016-04-13
|
* Got rid of unnecessary constructor parameterChristian Mollekopf2016-04-12
|
* Added identity supportChristian Mollekopf2016-04-12
|
* Debugging infoChristian Mollekopf2016-04-12
|
* Ported ResourceFacade to LocalStorageFacadeChristian Mollekopf2016-04-12
|
* Generalized LocalStorageFacadeChristian Mollekopf2016-04-12
|
* Use ConfigStore for accountsChristian Mollekopf2016-04-11
|
* Treat the type filter speciallyChristian Mollekopf2016-04-09
| | | | Because otherwise the filter will never match if we filter by type.
* Property filter for resources, and proper modification of resources.Christian Mollekopf2016-04-02
| | | | We used to remove all non-modified properties.
* Live queries for accountsChristian Mollekopf2016-03-17
|
* Better constructors for resources and accountsChristian Mollekopf2016-03-17
|
* Fixed accounts supportChristian Mollekopf2016-03-15
|