Closed JackDevAU closed 1 month ago
Update
PRs drafted to add new fields to history.json
https://github.com/SSWConsulting/SSW.Rules.Functions/pull/59 https://github.com/SSWConsulting/SSW.Rules/pull/1440
Update:
There were some blockers due workflows were failing for SSW.Rules and SSW.Rules.Functions projects.
New Issues are created and PRs to resolve these blockers:
Issues:
PRs:
Update:
Drafted PR on SSW.Rules.Widget repo to refactor so it uses history.json and commits.json
Update:
PRs to update widget version for SSW.Rules and SSW.People projects
cc: @bradystroud @JackDevAU
Update:
We are going to wait for 1 week and then proceed with removing unnecessary tables from CosmosDB
Update:
Drafted PR to remove unused Azure Functions for widget and entity context
https://github.com/SSWConsulting/SSW.Rules.Functions/pull/83
Update:
The UpdateLatestRules
functions wasn't being used after last time I checked which is good and can be removed safely, but the GetLatestRules
function was called a few times.
Figure: A few calls made to function after last check
Not sure where it is being called from, this function was being used in widget, but we have updated widget to new version to use history.json
.
I checked the request logs for this function before widget upgrade and after widget upgrade for the 7 day period:
Currently investigating where these calls are made from
Update
I couldn't find from where the GetLatestRules
are being called yet. The calls are not frequent as it is used to be after recent changes to widget's data source. Currently I'm working on https://github.com/SSWConsulting/SSW.Rules/issues/1448 as top priority.
This work still in progress
✅ GetLatestRules and UpdateLatestRules functions were removed
Implement GitHub API integration to fetch GitHub user information
All tests pass, including new tests for GitHub API integration
Implement caching mechanism to optimize GitHub API calls (optional - might not be needed)
All above tasks are not required, as we don't need to call GitHub API to get user info because commits.json
already has user information and widget is using it to get latest rules updated by specified user.
For more info look at this PR - https://github.com/SSWConsulting/SSW.Rules.Widget/pull/55
✅ Done - removed LatestRules
container from cosmos db
Figure: current cosmos db containers
Cc: @bradystroud @babakamyljanovssw @adamcogan
Hi Team,
Pain
Our current SSW Rules Widget relies on Azure Functions and a CosmosDB table, which adds unnecessary complexity and maintenance overhead to our system. The current issues we are facing is due to the builds and Azure Functions being out of sync and not storing all the data required.
What code could be improved?
Acceptance Criteria
title
,uri
,isArchived
to history.jsonImplement GitHub API integration to fetch GitHub user informationAll tests pass, including new tests for GitHub API integrationImplement caching mechanism to optimise GitHub API calls (optional - might not be needed)More Information
Screenshots
Figure: Current Widget Architecture Flow
Figure: Planned Widget Architecture Flow
Thanks!