-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manual edit of a note's title #474
Conversation
df57d83
to
5490052
Compare
Hey @korelstar, would be nice if you could give me an overview about the changes you are planning / making 🙂. Will the API be up- and/or downcompatible? Thank you in advance |
Regarding the general functionality: I've added some screenshots to the original posting. Third-party apps (I call them "mobile apps" in the following) will have to implement the functionality to edit the title, too. API v0.2My goal is to be as much compatible as possible. I think we have three options. For the evaluation, we have to differ between people who are using both web app and mobile app, and people who are using the mobile app only (I think they exist). Option 1: leave behavior as isBehavior definition
Evaluation
Option 2: no automatic change of titleBehavior definition
Evaluation
Option 3: Change existing API with magicBehavior definition
Evaluation
API v1We require a new major version of the API for options 1 and 3. This API will have the following behavior definition (for general thought about a new major version of the API please see #311): Behavior definition
ConclusionI hope, my thoughts are understandable (if not, please ask). I tend to prefer option 1, since it's the clearest one; straight forward, no behavior change for old mobile apps; least limitations. But I'm looking forward to hear other opinions! |
Thanks for the excellent description. I haven't had time to think about it in detail, but i will comment as soon as i know what i would prefer. I assume that you will keep To be honest i don't want to deal with multiple parallel supported API versions. Also i have some big other changes for the Android Notes app (new Markdown editor, Password protection and so on) and currently little spare time to manage all those changes in parallel. |
Just to clarify – is note creation still simple and like right now? As per my comment at #190 (comment)
|
@jancborchardt Yes, I've implemented this already (and just pushed it to this branch). @stefan-niedermann I think it's sufficient if clients implement only one API version at the same time. But in order to show meaningful error messages, they should check the capabilities API (at least on the first connect and if an error occurs) |
I also think option 1 is the way to go because an API (as nice it would be) should be reliable and stable and must not change its behavior like in option 2 or 3. cc @phedlund from iOS client |
Since nobody entered an objection, I'm merging this, now. I will add the docs in a separate PR: #491 |
@korelstar just a question about discoverability - is the supported API version exposed by the |
Ah, just saw the PR here with the documentation: https://github.com/nextcloud/notes/pull/491/files Since which version of the server app do the |
That will be also new in Notes v3.3. Hence, you should cope with the case, that it doesn't exist. :-( |
Fix #190
NotesService
and other back-end classesScreenshots
Actions
Edit mode