Good day, all. I am having issues with the database on a user-based application having some aspects shared between every user. I have even told the IDE to delete the entire database and start a new one and see if that will work, but nothing.
The issue: I have several testing user accounts. In each account, I add scanned pages that are saved into the database. However, when I log into any account, the same scanned pages are in each account. I don’t know what else to do to fix this.
Does anyone have even the slightest idea on how I can get this resolved?
Hi!
If I’m understanding you correctly, you want to have users be able to access specific-to-them data (scanned pages), but are finding that the pages are showing up in everyone’s account?
I would use assistant to try and work this out. I would start with outlining the problem, and asking what might need to happen to resolve it.
Example Prompt:
“I am finding that my database is displaying scanned pages to every user, and I do not want this to happen. I want the database to store scanned pages in a way that is specific to each user, so when they load it up, they are able to only see their pages. Can you help me fix this?”
I would keep iterating this until Assistant fixes it, changing contexts (creating a new conversation) frequently. Probably after 2 prompts per conversation.
Assistant is the best error fixer for things like this.
Let me know how it goes.
Best,
-Ethan
Thanks for this help, I honestly thought it was going to work, especially the new chat thingy, but sadly it didn’t :(. It said there was issues with multiple API calls, then a mismatch with the server and the client, but it still can’t fix it at all.
Let me ask for a follow-up then. I like the UI for the current project, but no matter what I do, I can’t get it when creating a new project. Do you know how to copy the UI and use the same pages for a new project? I cant seem to find a way to upload the files to start a project that way :(.
You can copy the relevant files into the context window for assistant and ask it to rewrite the styling for your application using the attached code.
In all honesty, I personally use Claude 3.5 Sonnet and o3-mini-high to make changes like this by copying the relevant codebase into the provider’s native system, and asking for the full updated files. This requires a bit of technical understanding, but not too much. I built an extension called PairProgrammerAccelerator (x.com) to make it easier to copy and paste the relevant files. You’re going to have to make decisions for what goes into the context window, and some of the files are gigantic, so just keep that in mind.
If you really need some help, I could probably get it working pretty quickly. Send me a dm if needed.