[PR #4532] [MERGED] Closes #3294: User preference tracking #12866

Closed
opened 2025-12-29 22:24:04 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4532
Author: @jeremystretch
Created: 4/24/2020
Status: Merged
Merged: 4/24/2020
Merged by: @jeremystretch

Base: developHead: 3294-user-prefs


📝 Commits (10+)

  • c0b1ae4 Initialize v2.9 development
  • 750deac Initial implementation of UserConfig model
  • afa0565 Show user config in admin UI
  • f3012ed Automatically create UserConfig for users
  • 30c3d6e Remember user's per_page preference (POC for UserConfig)
  • d8494e4 Document available user preferences
  • 7c8c85e Add all() method to UserConfig
  • 587339b Add page for user to view/clear preferences
  • dc9617c Fix returning default for unknown userconfig key
  • 178052b Prepare for merge into 2.8

📊 Changes

14 files changed (+409 additions, -4 deletions)

View changed files

docs/development/user-preferences.md (+9 -0)
📝 mkdocs.yml (+1 -0)
📝 netbox/templates/users/_user.html (+3 -0)
netbox/templates/users/preferences.html (+35 -0)
📝 netbox/users/admin.py (+9 -1)
netbox/users/migrations/0004_userconfig.py (+28 -0)
netbox/users/migrations/0005_create_userconfigs.py (+27 -0)
📝 netbox/users/models.py (+124 -0)
netbox/users/tests/test_models.py (+109 -0)
📝 netbox/users/urls.py (+1 -0)
📝 netbox/users/views.py (+24 -0)
📝 netbox/utilities/paginator.py (+19 -0)
📝 netbox/utilities/utils.py (+18 -0)
📝 netbox/utilities/views.py (+2 -3)

📄 Description

Closes #3294: User preference tracking

  • Introduces the UserConfig model to store user preferences (each user automatically gets an instance)
  • Provide a view for users to view and clear existing preferences
  • Implements #4531 (retaining pagination preference) as a proof of concept for the feature

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/4532 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 4/24/2020 **Status:** ✅ Merged **Merged:** 4/24/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `3294-user-prefs` --- ### 📝 Commits (10+) - [`c0b1ae4`](https://github.com/netbox-community/netbox/commit/c0b1ae49236afb6a96525d42fb6d81086cdac5a1) Initialize v2.9 development - [`750deac`](https://github.com/netbox-community/netbox/commit/750deac2cf096500cee763c9c825eb9e7ccadd6f) Initial implementation of UserConfig model - [`afa0565`](https://github.com/netbox-community/netbox/commit/afa0565a44c43cf15d6fdfe2f05c88a6579350ea) Show user config in admin UI - [`f3012ed`](https://github.com/netbox-community/netbox/commit/f3012ed839a3dc68eb9d18d298dce31ceb081dd2) Automatically create UserConfig for users - [`30c3d6e`](https://github.com/netbox-community/netbox/commit/30c3d6ee406eed8bf30cad1d19ade37caac356c0) Remember user's per_page preference (POC for UserConfig) - [`d8494e4`](https://github.com/netbox-community/netbox/commit/d8494e44e78eab1730952239fa365a5a5f85333b) Document available user preferences - [`7c8c85e`](https://github.com/netbox-community/netbox/commit/7c8c85e435bd056c42dedf6939f0d262645eb710) Add all() method to UserConfig - [`587339b`](https://github.com/netbox-community/netbox/commit/587339bea0457c9a9003fe94e09616c19476fa3f) Add page for user to view/clear preferences - [`dc9617c`](https://github.com/netbox-community/netbox/commit/dc9617c7aa6f3a78e6174601c34579babea6d450) Fix returning default for unknown userconfig key - [`178052b`](https://github.com/netbox-community/netbox/commit/178052b2f6bc19d0d0b063070d40ae028e934157) Prepare for merge into 2.8 ### 📊 Changes **14 files changed** (+409 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `docs/development/user-preferences.md` (+9 -0) 📝 `mkdocs.yml` (+1 -0) 📝 `netbox/templates/users/_user.html` (+3 -0) ➕ `netbox/templates/users/preferences.html` (+35 -0) 📝 `netbox/users/admin.py` (+9 -1) ➕ `netbox/users/migrations/0004_userconfig.py` (+28 -0) ➕ `netbox/users/migrations/0005_create_userconfigs.py` (+27 -0) 📝 `netbox/users/models.py` (+124 -0) ➕ `netbox/users/tests/test_models.py` (+109 -0) 📝 `netbox/users/urls.py` (+1 -0) 📝 `netbox/users/views.py` (+24 -0) 📝 `netbox/utilities/paginator.py` (+19 -0) 📝 `netbox/utilities/utils.py` (+18 -0) 📝 `netbox/utilities/views.py` (+2 -3) </details> ### 📄 Description ### Closes #3294: User preference tracking - Introduces the UserConfig model to store user preferences (each user automatically gets an instance) - Provide a view for users to view and clear existing preferences - Implements #4531 (retaining pagination preference) as a proof of concept for the feature --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:24:04 +01:00
adam closed this issue 2025-12-29 22:24:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12866