Multi-User simultaneous updates possible?

I wonder if it would be possible to integrate enough of the functionality of Jed’s “Bob” plugin (formerly Multi-user) into Note Self.

https://groups.google.com/forum/#!topic/tiddlywiki/cQRhkfhvbVk

From what I can tell the “Bob” plugin only works with Jed’s back-end to provide the real-time updates.

I have nowhere near the skills to pull apart Bob (or Note Self) to figure out if it is even possible to support dynamic updates like that. I don’t even know if CouchDB+PouchDB already do this sort of thing and I’m just clueless.

Maybe I should start by making my Note Self instance support multiple users and do some experiments.

Multi user is already possible on Noteself. In fact if you are using cloudant you may want to try cloudant configurator for easier user management : http://noteself.github.io/cloudant-configurator

Cool. I don’t use CloudAnt. I host my own CouchDB and web server.

There are some changes in cloudant login system now.

I am new user, at https://cloudant.com/sign-in/ I press on Don't have an account? button, which leads to https://www.ibm.com/cloud/cloudant, where I am finally able to Sign up.

But!
I’ve got not that cloudant.com name which is shown in your tutorial video, no.
I’ve got some IBMid, which let me use successfully cloudant db.
Unfortunately that IBMid is not the same as cloudant.com Username/Password, so I am not able to login at your cloudant-configurator.

Please help

Hello @johndoe

Cloudant is no longer an independent service and has been integrated to the IBM cloud portfolio, so the video is outdated.
In order to get the credentials you need to go to your bluemix dashboard (probably at https://console.bluemix.net/services) and click on service credentials on the left bar . Once there you should see a cloudant instance with a button that says, view credentials.
Something like this:

41

Yes, I’ve found this credentials, but failed to get them to work.

There is json with “apikey”, “iam_apikey_description”, “iam_apikey_name”, “iam_role_crn”, “iam_serviceid_crn”, “url”, “username”.
As I am understand correctly the only relevant field there is apikey value (and url).
So I’ve pasted that in corresponding NS Database settings, and pressed Save Config.

Unfortunately it does not help me to login: in any case after some pretty short timeout I loose connection to couchdb. It asks me for username/password, but I have no password, so I must explicitly open cloudant dashboard page and repeat that cumbersome IBMid login process.

Next try.

I’ve created new cloudant db, and this time I’ve selected different value for option Available authentication methods:: Use both legacy credentials and IAM.

After that I’ve created new Credentials set (leaved all default values).
And now I really see another json, with “apikey”, “host”, "iam_apikey_description, “iam_apikey_name”, “iam_role_crn”, “iam_serviceid_crn”, “password”, “port”, “url”, “username”.

Unfortunately I am still unable to login with this credentials (floating message Login failed from PouchAdaptor).

Well, after I enable CORS I can login with password/username on https://noteself.github.io/online/.

But that password/username pair actually gives admin access to cloudant dashboard, and it is not good.

Also I wonder about 2 things:

  1. Why https://noteself.github.io/edge/ does not have password/username prompts.
  2. How can I use username/apiKey field in database settings. Well, there is permissions page in cloudant dashboard, and I made some user permissions, but unable to see any effect of it.

The edge edition uses NoteSelf free sync service, that’s why there is no normal login prompt.
Regarding databases, you should be able to provide different permisions to different users on a per database basis. That is what the Free NS sync service does, it creates a new database per user and grants admin permissions to that user for that particular database. This is not an easy task, and I build a long time a go a cloudant user configurator for noteself, not sure if it still works today. You can try to add some users and see if it works:

https://noteself.github.io/cloudant-configurator/

Regards

i’m not using cloudant. How to use your hosted noteself in multi-user mode?

thx

You just configure several users on your database, and enter their credentials on the custom tab of login.

How to open the database?
thx

You need to configure your own couchdb server. There are many options, like your local machine, couchdb as a service providers or generic servers running couchdb.
Check the tutorials section of the forum for some examples