Skip to content

Clean up widget instances #153

Open
Open
@jfrank-nih

Description

@jfrank-nih

Global widget instances can be created either manually or in the widget's config.json. If the latter they are then updated whenever we deploy widgets. If a global instances is used in a page we want to track (see #124) then it needs to be in the code.

Unfortunately, we have some widget instances that were created either manually or by Akumina in code that did not get preserved. So there are instances that exist in Prod or Pre-Prod that are not tracked in the code. These need to be backported into the code.

We need to go through for each widget type in our code and do the following:

  • Verify that all widget instances in the code are being created in Akumina (no reason they shouldn't be) via the widget manager in the App Manager
  • Look at any other widget instances that are listed in the App Manager
    • If the widget instances is in PreProd but not in Prod, delete it
    • If the widget instance is in Prod, search for it in the PageWidgets_AK list in SharePoint by filtering on the WidgetInstanceId column. This will give you any pages, identified by PageId that can be looked up in the GenericPages_AK list
    • If the widget instance is not being used anywhere, delete it in Prod and PreProd after saving a backup of the properties
    • If the widget instance is being used, but the page it's being used on is not one of the ones we want to track (Sync pages with codebase #124), do nothing
    • If the widget instance is being used and is on a page we want to track, backport the widget instance into our codebase

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions