fr0tt / benotes

An open source self hosted notes and bookmarks taking web app.
https://benotes.org
MIT License
718 stars 49 forks source link

Duplicating Collections in Search Input Field #91

Closed roughnecks closed 10 months ago

roughnecks commented 11 months ago

Hello,

anytime I click on the input field of the search form I get duplication of collection (only visually): https://i.imgur.com/R42O021.jpeg

fr0tt commented 11 months ago

Hi,

Thanks ! This will be fixed within the next release.

roughnecks commented 10 months ago

Hello, I still have the bug.

One thing I'm not sure about the upgrade is that the

php artisan migrate

command didn't upgrade anything and I have a new "database.sqlite" file inside storage dir. My DB is instead located at /var/lib/benotes/notes.sqlite

Thanks

fr0tt commented 10 months ago

Hello,

that's strange. It works on my system. Perhaps your browser still uses a cached older version. Is it still a problem after a hard reload (Ctrl+F5) or when you're using another browser ?

It's intended to upgrade nothing, because this upgrade didn't include any database changes.

The "new" database is for everyone who wants to use it to reduce the setup time when your installing it for the first time. So in your case just ignore it and the file is small enough to hopefully not bother you too much.

roughnecks commented 10 months ago

I tried hard reloading but it's still the same. It logs me out and I log back in.

I had this issue while upgrading tho, forgot to mention it:

php artisan cache:clear
Failed to clear cache. Make sure you have the appropriate permissions.

I checked all of the cache folder inside the project and all of them are writeable by my user. Is there any particular folder I should check for permissions?

find . -type d -name "cache"
./bootstrap/cache
./vendor/doctrine/cache
./vendor/psr/cache
./storage/framework/cache
roughnecks commented 10 months ago

I changed owner again to all files in my project directory and now was able to clear the cache, although the issue is still there.. even from another browser.

fr0tt commented 10 months ago

storage and bootstrap/cache should be both accessible for your own user and your webserver's user. But I guess that's not the issue here. Let's look at this from a different angle. Can you notice a difference regarding scrolling on mobile and your backup issue ?

roughnecks commented 10 months ago

Yes, I could take a backup and the scrolling issue looks like fixed.

fr0tt commented 10 months ago

I think I figured it out. There are at least two ways to accomplish this outcome and I fixed one but not the other

roughnecks commented 10 months ago

fixed as well. Thanks