-
Notifications
You must be signed in to change notification settings - Fork 4
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
Setup without test data #86
Comments
Could you try in the 'devel' branch? I'm about to release the newest changes to the main branch, but not done yet. After changing to devel remember to do: pip install - e . I tested and I could login as admin/admin and also delete resources. You need to setup somehow an initial instance before starting EMhub. You can pass arguments to emt-data --create_instance and pass a different location and also a different json file. So you can try to copy the default one and modify 'resources', 'users' and other settings there. |
Thanks for the quick reply! The same problem occurred on the dev branch, but I edited the .json file to wipe out all the existing users, bookings, and instruments. That mostly worked - projects, invoices, and reports are broken, but perhaps because there's no data. |
You couldn't remove resources as admin? That's weird, I was able to delete it from the interface after login. Projects page is broken because it is missing some new values in the config file, I will fix that. But you should be able to see Sessions and Reports. |
I could remove it, but then when I try to load the dashboard afterwards, is when I'd get the above error. I'm now running to an issue where I can't add users, perhaps this has to do with my custom .json?
It looks like field 8 is |
Ok, I think I now know about what's happening. You have removed a Resource that is tried later to be displayed in the Dashboard. I will add a nicer message for that or just ignore that resource. I think the error is that you are trying to add an existing email, that field needs to be unique for each user. Here a better message is needed. Thanks for the feedback. |
I found the issue with the Dashboard, it is that you might have removed Resources that are used in the bookings. I need to add validation for that since every existing booking should be associated with a Resource. Are you missing any fields for users from your custom JSON? Thanks for your positive words! |
OK, I made a new .json file. I removed all projects, bookings, and sessions, and left the instruments and users alone. Then, after starting the server, I deleted the instruments and users in the GUI without any obvious issue. I was also able to add new users. I think that's as far as I can test, because I need the Projects working to make a booking, it seems. But I'll wait for the Projects to start working and test again at that point. Thanks so much for you help. |
You can fix the project config easily, I will correct that for the default instance creation. Just add the following before the last brace in the JSON definition of Form -> config:permission: ,
"projects": {
"can_create": "all",
"view_options": [
{
"key": "mine",
"label": "My Projects"
},
{
"key": "lab",
"label": "Lab's Projects"
},
{
"key": "all",
"label": "All Projects"
}
]
} After that you should get back the Projects page. |
Great, thanks! Projects page is working. |
New issue: I tried to reset the password of the newly created account (not sure how else to get the password?) and I get this error:
I do have SMTP setup (I think, but no way to verify). |
As admin you can set the password from any user, editing the user from the list. That user_reset_password page will require a SMTP setup for sending an email with the reset password token. I need to further test that part because we are not using it now. |
I've gotten EMHub running with the test data. However, when I try to delete some of the test data instruments, I can an error on the dashboard page:
'NoneType' object has no attribute 'tags'
If I try setting the data folder to an empty folder, I can't log into EMHub with the admin/admin login. Is there a way to set up EMHub without using the test data?
The text was updated successfully, but these errors were encountered: