-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Added auto-save whitespace behavior if it changed manually #15566
Conversation
Idk how to fix it. Database scheme for integration tests is obsolete.
|
c2c9129
to
d9898c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I'm adding a blocking review as I believe there was a proposal in a separate issue to add a KV table for user settings (or repo settings?) as then that would keep us from having to add a column to tables for each setting, and I think that should be the path we proceed with.
@techknowlogick Its good idea! But, maybe not KV (like |
A simple JSON object in the db for ui-related user settings would be awesome, yes. We could easily expose it on |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions. |
The user setting table is ready. We can continue without adding columns to user table now. 😊 @POPSuL do you have time to work on it? Thank you for your contribution! |
@wxiaoguang yes, i can. I will do it next week. |
c2c9129
to
86dbbf9
Compare
Rewritten to store in user_settings |
I did some refactoring, make it more simple and clear |
This comment has been minimized.
This comment has been minimized.
* giteaofficial/main: (28 commits) Added auto-save whitespace behavior if it changed manually (go-gitea#15566) Support custom ACME provider (go-gitea#18340) Refactor i18n, use Locale to provide i18n/translation related functions (go-gitea#18648) Only request write when necessary (go-gitea#18657) [skip ci] Updated translations via Crowdin Add separate SSH_USER config option (go-gitea#17584) Be more lenient with label colors (go-gitea#17752) remove redundant call to UpdateRepoStats during migration (go-gitea#18591) more repo dump/restore tests, including pull requests (go-gitea#18621) No longer show the db-downgrade SQL in production (go-gitea#18653) Fix the missing i18n key for update checker (go-gitea#18646) Update gitea-vet (go-gitea#18640) Future proof for 1.18 (go-gitea#18644) Add `contrib/upgrade.sh` (go-gitea#18286) If rendering has failed due to a net.OpError stop rendering (go-gitea#18642) Delete old git.NewCommand() and use it as git.NewCommandContext() (go-gitea#18552) Update JS dependencies (go-gitea#18636) fix commits_list_small.tmpl (go-gitea#18641) Fix `make fmt` and `make fmt-check` (go-gitea#18633) Frontport of changelog for v1.16.1 (go-gitea#18615) ...
Fix #13758, #9272
Works like "split/unified view" option, stores in database only for authenticated users when they changes that option.