From cb781891ae6177b94a844fcef33f786ea30cb0cb Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 7 Jun 2021 18:17:06 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 7 ++-- .../src/views/home-notify-subscription.vue | 37 ------------------- ayanova/src/views/home-search.vue | 2 +- 3 files changed, 5 insertions(+), 41 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 5dd6caf4..069d6d6b 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -208,6 +208,8 @@ todo: cypress testing for load testing etc ## SERVER MISC ITEMS + + todo: //TODO: Iterate all notification tagged items, use the one with the MOST matching tags see how contract labor done in workorder, idea is it iterate from the subscription with the most numerous amount of tags to least in order to ensure that the most specfic tag set is matched first @@ -366,7 +368,6 @@ CURRENTLY DOING: workorder round two electric boogaloo basics first then increasingly esoteric features - todo 3: notification Go through all notification types and pick out relevant ones, paste here in a list then implement one by one and test each When that list is done, notification is done for workorder anyway @@ -1141,7 +1142,7 @@ Send a tip / buy a coffee link to the graphic designer who made the rabbit logo coffee button top right if I use it in release I should at least send them the small amount they get tipped -Send a tip / donate to teh favicon generator guy +Send a tip / donate to the favicon generator guy https://realfavicongenerator.net/ I broke it at one point by bringing down the site while it was checking ... oops. Used it several times and should donate @@ -1208,7 +1209,7 @@ MID CENTURY MODERN TUNES - https://www.allmusic.com/album/ultra-lounge-vol-14-bo BUILD CHANGES OF NOTE build 105 -- direct report url now works again properly. Used by notification to send links to reports and possible future other links to provide an url that opens in teh AyaNova client directly to viewing a report, so that the url [clienturl]/viewreport?oid=1&rid=1 for example will open report id 1 with object id 1 +- direct report url now works again properly. Used by notification to send links to reports and possible future other links to provide an url that opens in the AyaNova client directly to viewing a report, so that the url [clienturl]/viewreport?oid=1&rid=1 for example will open report id 1 with object id 1 - Can now hide columns that are filtered or sorted without error in data tables; Data Table column selector button will change to larger and accented when this is the case and the column selector form will highlight these hidden columns that affect the view with raised elevation, accent color and filter/sort icon (both show, there is no distinction which type of way it's affecting) - fixed Search form object types selection need enum list variant of object types to only show for roles allowed then change search form picklist to use that variant diff --git a/ayanova/src/views/home-notify-subscription.vue b/ayanova/src/views/home-notify-subscription.vue index 77ac42ff..9157e467 100644 --- a/ayanova/src/views/home-notify-subscription.vue +++ b/ayanova/src/views/home-notify-subscription.vue @@ -716,43 +716,6 @@ async function populateSelectionLists(vm) { await window.$gz.enums.fetchEnumList("NotifyEventType"); let tempEventTypes = window.$gz.enums.getSelectionList("NotifyEventType"); if (window.$gz.store.getters.isOutsideUser) { - /* //see core-notifications.txt spec doc for a bit more info on each type (they are named a little bit differently) - //#### NOTE: once event is NOTED IN COMMENT (not necessarily coded yet as some can't be yet) in NotifyEventProcessor I'll mark it with a * in the comment so I know if I miss any - ObjectDeleted = 1,//* Deletion of any object of conditional specific AyaType and optionally conditional tags - ObjectCreated = 2,//* creation of any object of conditional specific AyaType and optionally conditional tags - ObjectModified = 3,//* Modification / update of any kind of any object of conditional specific AyaType and optionally conditional tags - WorkorderStatusChange = 4,//* Workorder object, any *change* of status including from no status (new) to a specific conditional status ID value - ContractExpiring = 5,//* Contract object, aged notification with optional advance notice for expiration date of contract. Customer version and User version deliveries possible. - CSRAccepted = 6,//*CustomerServiceRequest object, saved with ACCEPTED status, delivered to Customer only - CSRRejected = 7,//*CustomerServiceRequest object, saved with REJECTED status, delivered to Customer only - CopyOfCustomerNotification = 8,//*User notification of what was sent to a Customer as a notification. In other words can subscribe to any customer notifications and be sent a copy of them. Tag filter is based on Customer's tags for this one so user can choose which customer group to subscribe to this or all. - QuoteStatusChange = 9,//* Quote object, any *change* of status including from no status (new) to a specific conditional status ID value - ObjectAge = 10,//* Any object, Age (conditional on AgeValue) after creation event of any object of conditional specific AyaType and optionally conditional tags - ServiceBankDepleted = 11,//*ServiceBank object, any change to balance triggers this check, conditional on decvalue as remaining balance left to trigger this notification - ReminderImminent = 12,//*Reminder object, Advance notice setting tag conditional - ScheduledOnWorkorder = 13,//*Workorder / WorkorderItemScheduledUser object, instant notification when current user is scheduled on a service workorder - ScheduledOnWorkorderImminent = 14,//*Workorder / WorkorderItemScheduledUser object, advanced (settable) notification when current user's scheduled date/time is imminent - WorkorderFinishStatusOverdue = 15,//* Workorder object not set to a "Finished" flagged workorder status type in selected time span from creation of workorderWorkorderSetToFinishedStatus - OutsideServiceOverdue = 16,//* Workorder object , WorkorderItemOutsideService created / updated, sets advance notice on due date tag filterable - OutsideServiceReceived = 17,//* Workorder object , WorkorderItemOutsideService updated, instant notification when item received, tag filterable - PartRequestReceived = 18,//* Workorder object / workorderitempartrequest updated, sent to person who requested when parts received back - NotifyHealthCheck = 19,//* NO OBJECT, direct subscription to receive recurring daily notify system "ping" sent out between 8am and 10am once every 24 hours minimum every day server local time - BackupStatus = 20,//* NO OBJECT, direct subscription to receive results of last backup operation - CustomerServiceImminent = 21,//* Workorder / WorkorderItemScheduledUser object, notice that scheduled service is due, can set advance notice, CUSTOMER gets delivery - PartRequested = 22,//* Workorder object / workorderitempartrequest created tag filterable - WorkorderTotalExceedsThreshold = 23,//* "the Andy" Workorder updated / created, based on balance total so conditional on DecValue - WorkorderStatusAge = 24,//* Workorder object Created / Updated, conditional on exact status selected IdValue, Tags conditional, advance notice can be set - UnitWarrantyExpiry = 25,//* Unit object created, advance notice can be used, tag conditional - UnitMeterReadingMultipleExceeded = 26,//* UnitMeterReading object, Created, conditional on DecValue as the Multiple threshold, if passed then notifies - GeneralNotification = 27,//* NO OBJECT old quick notification, refers now to any direct text notification internal or user to user used for system notifications (default delivers in app but user can opt to also get email) - ServerOperationsProblem = 28,//* NO OBJECT and serious issue with server operations requiring intervention, - QuoteStatusAge = 29,//* Quote object Created / Updated, conditional on exact status selected IdValue, Tags conditional, advance notice can be set - WorkorderFinished = 30, //*Service work order is set to any status that is flagged as a "Finished" type of status - WorkorderCreatedForCustomer = 31, //*Service work order is created for Customer, only applies to that customer user notify sub for that customer, customer id is in conditional ID value for subscription - WorkorderFinishedFollowUp = 32 //* Service workorder closed status follow up again after this many TIMESPAN - - */ - vm.selectLists.eventTypes = tempEventTypes.filter( z => z.id == 6 || z.id == 7 || z.id == 21 || z.id == 30 || z.id == 31 ); diff --git a/ayanova/src/views/home-search.vue b/ayanova/src/views/home-search.vue index 50eb016a..10ac058b 100644 --- a/ayanova/src/views/home-search.vue +++ b/ayanova/src/views/home-search.vue @@ -116,7 +116,7 @@ export default { vm.searchAType = vm.$route.params.ayatype; } - //get form settings from session cache, if same type as in route then re-use teh last search stuff + //get form settings from session cache, if same type as in route then re-use the last search stuff //however if different than need to clear it (or not rehydrate it) let savedSettings = window.$gz.form.getFormSettings(FORM_KEY);