Saving a shared view from the view config panel skips the shared-view warning
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start with onSaveView in mj-view-workspace and compare it with onQuickSave, which already opens the shared-view warning. Trace how the save event is held and how CurrentViewEntity?.IsShared is checked. The change is done when both save paths show the same warning before overwriting a shared view, with regression coverage added if an existing nearby test location is found.
Written by the indexing model from the issue text.
Description
Summary
The quick-save dialog warns before overwriting a shared view, but saving from the view config panel (onSaveView) does not. A user editing the columns of a shared view overwrites it for everyone with no warning; only the server's ownership check stands in the way. A fix routes onSaveView through the same warning.
What happened
Follow-up from bizapps-orders PR #243 (known MJ limitation), never filed. https://github.com/MemberJunction/bizapps-orders/pull/243
Expected: the same shared-view warning on both save paths.
Actual: the config panel's Save writes the shared view directly.
Steps to reproduce
- Open a shared view you own in
mj-view-workspacewithAutoSaveViewon. - Change columns in the config panel and press Save.
- No warning; the shared view changes for every user.
Confidence
Inferred from code, not observed
Environment
MJ 6.1.5 · bizapps-orders @ next 8e104ce9
MJ next f6faded5 (same code)
Severity proposed
minor
Target line
next
Duplicate search
Searched "shared view warning" (MemberJunction/MJ) — found #3239 (unrelated: private view execution), none for this.
Blocking?
Not blocked.
Proposed fix (optional) — tested? no
Proposed: in onSaveView, when !event.SaveAsNew && this.CurrentViewEntity?.IsShared, hold the event and open the shared-view warning, as onQuickSave does.
Tested: no
- Dominant language
- TSQL
- Stars
- 32
- Forks
- 7
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 682
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MemberJunction/MJ
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
MemberJunction/MJ#5864 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
MemberJunction/MJ#5859 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
MemberJunction/MJ#5836 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
MemberJunction/MJ#5832 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
MemberJunction/MJ#5831 ·
Maintainers usually reply within 1 day
All issues in MemberJunction/MJ
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Show a readable message when a file can't be importedPossibly taken @hiyouwhatsapp claimed this today. Openarea: catalog good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Karthik-beta/Blinkql#103 · 1 comment ·
Maintainers usually reply within 1 day
-
Bug Forever Module - Tooltips
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day