Skip to content
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

auto columns not populated / deleted rows reappearing / and more #2139

Closed
shogunpurple opened this issue Jul 27, 2021 Discussed in #2132 · 4 comments
Closed

auto columns not populated / deleted rows reappearing / and more #2139

shogunpurple opened this issue Jul 27, 2021 Discussed in #2132 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@shogunpurple
Copy link
Member

Discussed in #2132

Originally posted by projestra July 27, 2021
Dear all,

when I came across budibase a couple of days ago I was excited by the whole concept. Brilliant - many thanks!

I've installed budibase as instructed in die manuals via the CLI on an old iMac running Ubuntu 20.04.1. All components from node.js to docker where installed in their most current version. So far so good ... up and running smoothly.

Actually everything woks fine for as long as I work from a single user (which in my case is the budibase admin user). As soon as data rows are added from a second user account, database behaviour becomes very strange (to be on the safe side, I even ditched the whole install incl. containers and volumes, of course but the behaviour stays the same).

As this is best illustrated with a series of screenshots, I have attached a PDF illustrating the system behaviour. I don't have the faintest idea what may be going on here and would greatly appreciate some insight.

Many thanks in advance and kind regards,
Christian
The Problem.pdf

@shogunpurple shogunpurple added the bug Something isn't working label Jul 27, 2021
@mslourens
Copy link
Contributor

I investigated the issue. As far as I can see the Created By is empty, because the new user is not known in the database of the app. When you first create an app, then you create a new user, and finally you open the created app with the new user and add a new row with a 'Created By' field, the system will try to find the user to create a link between the user and the created row. It will not find this new user, because it only has a reference document to the user who originally created the app.

In order to fix this issue we need to add a reference to the new user (ro_ta_users_us_<ID>) in the app this user is working on. We could do this when creating a new user for all apps, or we could check if the user is known by the app when the app is opened, and if not, create the reference to the user table.

@Mitch-Budibase
Copy link
Contributor

I have followed the steps within the produced problem.pdf (linked above).

I am seeing an issue still.

Table created and populated by one user - Created By & Updated By columns populated accordingly.
I sign in as another user(admin user) and add a row to the table - Created By & Updated By columns are NOT populated correctly.
I sign in as another user (basic user) and add a row to the table - Created By & Updated By columns are NOT populated correctly.

Screenshot 2021-08-18 at 15.46.34.png

@stale
Copy link

stale bot commented Oct 17, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 17, 2021
@mike12345567 mike12345567 self-assigned this Oct 21, 2021
@stale stale bot removed the stale label Oct 21, 2021
@Mitch-Budibase
Copy link
Contributor

I have tested this again and am no longer seeing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants