Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up widget instances #153

Open
jfrank-nih opened this issue Mar 28, 2025 · 0 comments
Open

Clean up widget instances #153

jfrank-nih opened this issue Mar 28, 2025 · 0 comments
Assignees
Labels

Comments

@jfrank-nih
Copy link
Member

jfrank-nih commented Mar 28, 2025

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
@jfrank-nih jfrank-nih self-assigned this Mar 31, 2025
@jfrank-nih jfrank-nih changed the title Meta Ticket: Clean up widget instances Clean up widget instances Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant