-
Notifications
You must be signed in to change notification settings - Fork 3
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
Pad friendly URL #1
Comments
until #2 is implemented the pad title can not change, right? 🤔 although it is supported anyway.... |
Right ;) you can also implement #2 :)
El 12 jul. 2018 7:52 p. m., Ana María Martínez Gómez <[email protected]> escribió:
until #2 is implemented the pad title can not change, right? 🤔
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@pablojan I have some questions:
|
Swell assigns an auto generated id to objects if no custom id is provided, for example local.net/s+34cs5z2 , and I think that it must be the canonical id for the object. Secondly, to make things easier for the users, we can set a first object name, using the title. I am pretty sure that getObjectNames() returns the object id together with all names for that id. Maybe doc is not clear enough. 💃 |
I see... the |
ok... it is there... but it is still not really nice... It returns something like:
what would mean that to get the
or is there a better way to do this? 🤔 because if not, it would be nicer to just return { id: "local.net/hola", names: ["hola"] }. So, parsing it manually instead of using |
Rename the paramether in the route fron `id` to `name` to have friendly urls. Use the name in the route to call `getObjectNames` which allow us to get the id. The result need an ugly parsing to get the id, due to the format of the response. See: SwellRT#1 (comment) Closes SwellRT#1.
Rename the paramether in the route fron `id` to `name` to have friendly urls. Use the name in the route to call `getObjectNames` which allow us to get the id. The result need an ugly parsing to get the id, due to the format of the response. See: SwellRT#1 (comment) Closes SwellRT#1.
Rename the paramether in the route fron `id` to `name` to have friendly urls. Use the name in the route to call `getObjectNames` which allow us to get the id. The result need an ugly parsing to get the id, due to the format of the response. See: SwellRT#1 (comment) Closes SwellRT#1.
hehe sure, the response will be nicer returning the id in one single string. |
We want to have friendly URLs for the pads.
A pad URL must be aligned with the pad title.
If a pad title changes, a new URL for that title must be accepted as well as previous URLs
It is ok to store the current title as a pad's object property.
SwellRT provides utility methods for handling this, check out.
https://github.com/P2Pvalue/swellrt/blob/develop/wave/doc/swellrt/Reference.md#friendly-names-for-collaborative-objects
The text was updated successfully, but these errors were encountered: