Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-06-03 | csapi: jobs to setup push-rules | Kitsune Ral | |
2018-06-03 | csapi: PeekEventsJob, ReportContentJob, presence jobs | Kitsune Ral | |
2018-06-03 | csapi: No need to explicitly #include <QtCore/QStringList> | Kitsune Ral | |
2018-06-03 | csapi: GetTurnServerJob | Kitsune Ral | |
2018-06-03 | csapi/content-repo.*: jobs return results in data() instead of content() now | Kitsune Ral | |
Because GTAD has been updated to use a different default name for returned properties. | |||
2018-06-03 | csapi/notifications.*: Use QVariant instead of QJsonObject | Kitsune Ral | |
Thanks to the latest GTAD. QJsonObject wasn't quite correct there. | |||
2018-06-03 | csapi + converters: Support variant types (using QVariant) | Kitsune Ral | |
This mandated some rearrangement of toJson() overloads and FromJson<> specializations for QVariant* types - instead of variant_converters.h they are now in converters.cpp. | |||
2018-06-03 | csapi: Updated to the most recent API definitions | Kitsune Ral | |
2018-06-03 | gtad.yaml: Fixes around defaultValue | Kitsune Ral | |
1. defaultValue now preempts Omittable<> 2. Fixed the problem when defaultValue was provided but initializer was empty (a case for int's, bool's etc.) | |||
2018-06-03 | gtad.yaml: Fallback to QJsonArray no more needed | Kitsune Ral | |
...with the latest GTAD | |||
2018-06-03 | gtad.yaml: Make sure to pass avoidCopy to ref'ed types | Kitsune Ral | |
2018-06-02 | BaseJob: fix error handling for M_CONSENT_NOT_GIVEN | Kitsune Ral | |
2018-06-02 | More reliable test state tracking; join/leave tests | Kitsune Ral | |
1. Instead of a single numeric semaphore, tests are first added to the `running` list and then transferred to `succeeded` or `failed`, depending on the outcome. 2. The test flow now starts with joining the test room and finishes with leaving it. Closes #209. | |||
2018-06-02 | Connection::loadedRoomState() signal | Kitsune Ral | |
Closes #211. | |||
2018-06-02 | Room::dropDuplicateEvents(): use a reference instead of a pointer | Kitsune Ral | |
There's no case for a nullptr in that function, and I'm fine to use non-const ref parameters. | |||
2018-06-02 | csapi: Fix adding omittables to a query string | Kitsune Ral | |
2018-06-02 | GTAD: drop question marks and "true" from attributes | Kitsune Ral | |
They lead to an (incorrect) assumption that those attributes are actual binary flags rather than just flags (there's no such thing as avoidCopy=false, avoidCopy should be absent instead). | |||
2018-06-02 | Typo fix | Kitsune Ral | |
2018-06-02 | csapi: Use Omittable<> container instead of intrusive 'omitted' field | Kitsune Ral | |
Also: use the latest feature of GTAD, +set/+on, to make gtad.yaml more compact. | |||
2018-06-02 | addToJson(): Omit unneeded defaulting of ValT to void | Kitsune Ral | |
2018-05-30 | BaseJob::setStatus: Don't try to remove access token if it's empty | Kitsune Ral | |
Closes #210. | |||
2018-05-29 | BaseJob: Treat M_CONSENT_NOT_GIVEN separately from other content access errors | Kitsune Ral | |
Closes #207. | |||
2018-05-29 | BaseJob: "background" switch; more extensive error reporting | Kitsune Ral | |
Running a request in background, aside from some tweaks on the network layer (see QNetworkRequest::BackgroundRequestAttribute), allows to distinguish jobs not immediately caused by user interaction (such as fetching thumbnails). This can be used to show or not show certain notifications in UI of clients. Error reporting has been extended with more methods: errorCaption() - a human-readable phrase calculated from the status code; intended to be shown as a dialog caption and in similar situations. errorRawData() - former errorDetails(), returns the raw response from the server. errorUrl() - returns a URL that may be useful with the error (e.g. for the upcoming "consent not given" error, this will have the policy URL). Connection::resultFailed() - a new signal emitted when _any_ BaseJob::failure() is emitted (enables centralised error handling across all network requests in clients). As a part of matching changes in Connection, callApi has an overload that allows to specify the policy; a custom enum instead of bool has been chosen for the parameter type, to avoid clashes with (arbitrary) types of job parameters. | |||
2018-05-28 | Move out prettyPrint() from Room to util.h | Kitsune Ral | |
So that it could be used outside of room context. | |||
2018-05-28 | BaseJob: support status tracking | Kitsune Ral | |
The newly introduced statusChanged() signal allows clients to be notified about the job state transitions. | |||
2018-05-28 | BaseJob: refresh rotten comments about kill() | Kitsune Ral | |
There is no more BaseJob::kill() for a very long time; we have abandon() instead, with a bit different meaning. Which, by the way, now emits finished() because that's what finished() has been for. | |||
2018-05-28 | qmc-example: Updates to Valgrind suppressions | Kitsune Ral | |
2018-05-26 | lib/csapi/: regenerate job classes from the most recent templates | Kitsune Ral | |
The second part to close #208. | |||
2018-05-26 | lib/csapi/: Don't send parameters that were omitted | Kitsune Ral | |
This is important because payloads that include omitted parameters may be malformed. Closes #208 (an example of such malformed payload). | |||
2018-05-24 | Room: Make isFavourite/LowPriority/DirectChat accessible from QML | Kitsune Ral | |
The first two as Q_PROPERTYs, the last one as Q_INVOKABLE. | |||
2018-05-23 | BaseJob: more careful error handling; unify and extend error signals in ↵ | Kitsune Ral | |
Connection (Note: this commit breaks back-compatibility.) BaseJob::gotReply() had a bold assumption that whenever there's no reasonable JSON body in case of error, that meant IncorrectRequestError (which of course was incorrect). This led to syncs dying in Quaternion because it (correctly) considered IncorrectRequestError to be grave enough to not retry. Closes #206. Also: don't dump the whole payload to logs, limit with initial 500 characters (closes #205) | |||
2018-05-06 | Remove unused job classes. | Kitsune Ral | |
2018-05-06 | converters.h: Fix CI | Kitsune Ral | |
2018-05-06 | Optimise #includes, eliminate some excess blank lines in lib/csapi | Kitsune Ral | |
2018-05-06 | lib/csapi/*.mustache: Optimise #includes, eliminate some blank lines | Kitsune Ral | |
2018-05-06 | lib/csapi: SearchJob | Kitsune Ral | |
2018-05-06 | Room::calculateDisplayname: fix a misleading room name after leaving a ↵ | Kitsune Ral | |
one-on-one | |||
2018-05-06 | CMakeLists.txt: Bump API version | Kitsune Ral | |
2018-05-05 | Merge branch 'kitsune-gtad' | Kitsune Ral | |
2018-05-05 | CONTRIBUTING.md: add a section about using GTAD | Kitsune Ral | |
[skip ci] | |||
2018-05-05 | README.md: cleaning up captions | Kitsune Ral | |
[skip ci] | |||
2018-05-04 | New home for the generated code - lib/csapi | Kitsune Ral | |
2018-05-04 | Fix building on OSX | Kitsune Ral | |
2018-05-04 | gtad.yaml: Cleanup | Kitsune Ral | |
2018-05-04 | gtad.yaml: Even more concise type stubbing | Kitsune Ral | |
With most recent GTAD. | |||
2018-05-04 | Connection, jobs/generated: Use QStringList instead of QVector<QString> | Kitsune Ral | |
QStringList's API is richer, after all. | |||
2018-05-04 | gtad.yaml: Use QStringList instead of QVector<QString> | Kitsune Ral | |
QStringList's API is richer, after all. | |||
2018-05-04 | jobs/generated: code ordering, more comments | Kitsune Ral | |
2018-05-04 | gtad.yaml: Support maps of events | Kitsune Ral | |
Use std::unordered_map<> (now supported by GTAD and converters.h) for that. | |||
2018-05-04 | {{base}}.h.mustache: better code ordering, more comments | Kitsune Ral | |