View Issue Details

IDProjectCategoryView StatusLast Update
0005591Composrcore_upgraderpublic2024-03-30 14:54
ReporterPatrick SchmalstigAssigned ToPatrick Schmalstig 
SeverityFeature-request 
Status closedResolutionwon't fix 
Product Version 
Fixed in Version 
Summary0005591: Allow fixing database issues from UI
DescriptionOn the screen for correcting MySQL schema issues, present each detected issue in a table of tick boxes. Add a new button that says "Fix Selected" or something like that. Allow ticking off queries to run when the new fix button is clicked.

The name of each tick box should be the MD5 of the query so we can easily figure out which POST params belong to which queries when the tool re-runs.

If one or more fixes were applied, then the tool should re-run itself again (in check mode only... clear out all SQL POST params) in case all issues from some step have been fixed and we can now check a different step for issues. It would be better to re-run the tool completely instead of reversing our tracking variables dynamically because an applied "fix" might not have actually fixed the underlying issue, and we want to be sure we check for that again.

Remember the upgrader is minimalist so do not use any CNS APIs for the interface.
TagsRoadmap: v11
Time estimation (hours)
Sponsorship open

Activities

Chris Graham

2024-02-10 19:56

administrator   ~0008310

I thought we said somewhere that this was a power tool to be used very carefully, by an expert who understands it?
If it is made more accessible to non-experts doesn't this mean that we risk people critically breaking their database through some bug in our logic, beyond their ability to resolve it - all just so the schema can be 100% perfect (the user probably would never have known it wasn't TBH).

There's also the consideration that some of these fixup queries could take minutes to run on large sites, and time out, causing serious confusion, and potentially bringing down a site if the user keeps hitting refresh.

What is the driver for running commands direct from the UI?

Patrick Schmalstig

2024-02-10 20:24

administrator   ~0008315

Yes it does say that. You have good points there.

I'm not sure what your question is asking. Commandr is coming to mind but that's probably not what you meant.

Chris Graham

2024-02-10 20:40

administrator   ~0008318

I just mean, why is this being considered? Is what we're doing confusing someone, putting something beyond their skills, or maybe something you just saw as unnecessarily laborious?

Patrick Schmalstig

2024-02-10 20:53

administrator   ~0008320

The latter... unnecessarily laborious as it would require manually going into the database and running the queries.

However, perhaps that is ideal as it necessitates more time to think about what you're doing. However, if we keep the current behaviour, I would recommend changing the action text "Correct MySQL Schema Issues" as it doesn't actually correct them. Perhaps, "Check for MySQL Schema Issues".

Chris Graham

2024-02-11 00:23

administrator   ~0008327

Sounds fair to me.

Patrick Schmalstig

2024-03-30 14:54

administrator   ~0008497

I changed the language as indicated in the comments but the core issue itself won't be done.

Issue History

Date Modified Username Field Change
2024-02-04 18:47 Patrick Schmalstig New Issue
2024-02-04 18:47 Patrick Schmalstig Status non-assigned => assigned
2024-02-04 18:47 Patrick Schmalstig Assigned To => Patrick Schmalstig
2024-02-04 18:47 Patrick Schmalstig Tag Attached: Roadmap: v11
2024-02-04 18:49 Patrick Schmalstig Description Updated View Revisions
2024-02-04 18:50 Patrick Schmalstig Description Updated View Revisions
2024-02-10 19:56 Chris Graham Note Added: 0008310
2024-02-10 20:24 Patrick Schmalstig Note Added: 0008315
2024-02-10 20:40 Chris Graham Note Added: 0008318
2024-02-10 20:53 Patrick Schmalstig Note Added: 0008320
2024-02-11 00:23 Chris Graham Note Added: 0008327
2024-03-30 14:54 Patrick Schmalstig Status assigned => closed
2024-03-30 14:54 Patrick Schmalstig Resolution open => won't fix
2024-03-30 14:54 Patrick Schmalstig Note Added: 0008497