This commit is contained in:
2020-06-14 21:50:24 +00:00
parent 666024a545
commit cceff67e14
2 changed files with 53 additions and 106 deletions

View File

@@ -10,115 +10,61 @@ WIFI change 5g channel to 52,56,60 and 2g channel to 8
todo: ensure dbid on about page
No, showing empty for no license mode, wtf?
todo: Administration - License
- view current license
- View polling status
- If message in license table then shows it as well
Used to show revocation messages etc
- Verify email address
- View and copy DBID (very important, they will need it to purchase manually)
- Erase all biz data (new route and command needed at back as currently it erases ops data as well I think)
- Request trial license key?
- Have a button that triggers an immediate check for new license at rockfish
- Show last result of license check job?
todo: License testing (I know it's working when these things all pass)
ONBOARDING / BOOTSTRAPPING
SPECIAL LOGIN HANDLING FOR ABNORMAL LICENSE STATES
** In all cases there will always be a fetch license key button available from any of the states below **
LICENSE STATUS: NONE, EXPIREDTRIAL, EXPIREDPURCHASE
Go to license form display alternate UI:
THREE state UI dialog shown in license form:
START EVALUATION
If status expiredtrial then they must erase before requesting new license
Erase database and request new trial
Erases db then goes to trial request form to trigger request process
If NONE then can just request license
Goes to trial request form to trigger request process
PURCHASE LICENSE
Takes to purchase page
Purchase page has link to pricing and help regarding licensing
HAVE LICENSE
Takes to manual / documentation page regarding this exact issue
If you have a backup
Link to restore docs
If you'd like to start fresh
contact to request license be freed up again
LICENSE STATE: REVOKED
Go to license form
Simple static display with contact link
provide dbid and explain what you would like to do
LICENSE STATE: ActiveTrial
Goes to root level Evaluation page on login
Has helpful trial hints, links and tools
Purchase link
Manual link to evaluating?
Guided walkthroughs or links to them?
Erase data
so they can regen new data
or entere their own test data
if(DB empty)
Generate sample data
choose size etc
Trigger license fetch (in case just purchased)
IMPORT
needs to support trial import from v7
LICENSE STATE: ActivePurchased
Do nothing special, all normal initialization
Server is automatically checking for updated license periodically
once a day?
User can trigger an immediate license check
User can view and copy DBID
If license expires server goes into READ ONLY mode, all ops valid but only as read only
don't think I actually coded for this
Maybe this isn't the case, maybe ops only is the new license expired?
sure would make people take action faster! :)
On boot of new erased db should
only run in unlicensed mode
Have a unique DBID
only allow ops routes
allow user to request a trial
#################################
todo: Put a guard around the default values for license trial fetch
using the devmode so I can keep using it as defaulted but no chance it stays that way in release mode
todo: about form show real dbid not license dbid or both I guess
todo: license form erase all data?
has to go somewhere, it's an ops thing kind of but also a biz thing so... hmm..
todo: generator routine for license checking
Check for new license on situationally appropriate time scale
Go to LOCK mode when the license expires (not maintenance, just the license itself)
todo: Evaluate UI
Goes to root level Evaluation page on login
Has helpful trial hints, links and tools
Purchase link
Manual link to evaluating?
Guided walkthroughs or links to them?
Erase data
so they can regen new data
or entere their own test data
if(DB empty)
Generate sample data
choose size etc
Trigger license fetch (in case just purchased)
IMPORT
No v7 shit in here at all, drive that from the other end via the plugin
it will pass in time then look crappy if it's in raven
todo: red notification automatic when maintenance has expired
Link to manual page about repercussions and how to fix
todo: warning notification automatic when maintenance is about to expire
todo: Migrate to v8 plugin needs to work with a trial database as well as a licensed database
It should check if a trial or not and give heavy warning if not
kind of cool if it checked for a recent backup before doing anything damaging
or triggered a checkpoint backup
todo: purchase, generate and install sequence
todo: test revoke sequence from rockfish to db
todo: server error red box messages have \r\n characters in them
todo: add system to reset password if lost
todo: Auth is directly fetching, re-route through gzapi instead
todo: remove all use of .then() as it's being used incorrectly
replace with await and async methods
todo: switch all api methods to use the Ex method added (part of de then-ification)
todo: Administration - Users
is this where roles are set?
role control

View File

@@ -323,13 +323,14 @@ export default {
}
//LICENSE STATUS: EXPIREDPURCHASE
if (licenseState == 4) {
if (licenseState == 4 || licenseState == 5) {
return "neednotrial";
}
//LICENSE STATE: REVOKED
if (licenseState == 5) {
return "revoked";
}
// //LICENSE STATE: REVOKED
//nothing special for revoke
// if (licenseState == 5) {
// return "revoked";
// }
//LICENSE STATE: ActiveTrial or ActivePurchased
if (licenseState == 1 || licenseState == 3) {