Skip to content

[minor] Common module implementation for SaaS Feature status persistence - #501

Merged
whitfiea merged 39 commits into
stablefrom
mascore-18566
Oct 23, 2026
Merged

whitfiea merged 39 commits into
stablefrom
mascore-18566

Conversation

@svt01

@svt01 svt01 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR provides the new command that allows us to write the allowlisting provisioning status in mongodb. It writes MAS feature status details to mas_devops mongodb database.

Related Issues

https://jsw.ibm.com/browse/MASCORE-18566
https://jsw.ibm.com/browse/MASCORE-19592

How Has This Been Tested?

The end to end testing is performed by updating the allow-list in saas-envs.
Based on the calls from CIS allowlisting provisioning module to write the status the calls are captured from suite-dns and subsequent mongodb updates are shown.


REQUESTED

The allow_list was provisioned in saas-envs and in subsequent run in the suite-dns, we can see the invocation of mas-devops-feature-status-update command with the status as REQUESTED and same getting persisted in the mongodb
image

IN_PROGRESS

The invocation of command to mark the status as IN_PROGRESS based on the call for allow-list provisioning
image

ACTIVE

Depending on the response for the allow-list provisioning call, the status is set to success ie ACTIVE and same can be seen in the mongodb

image

Similarly, following screenshots details out the transition from IN_PROGRESS to DEACTIVATED

The status is updated to IN_PROGRESS, before transitioning to Deactivate status

IN_PROGRESS

image

DEACTIVATED

The call from the ansible-devops for writing the status as deactivated and the mongodb update with the new status as DEACTIVATED can be seen below
image
image

@svt01 svt01 changed the title fix: initial commit for the status update command [minor] Common module implementation for SaaS Feature status persistence Oct 5, 2026
@svt01
svt01 marked this pull request as ready for review October 22, 2026 12:01
@svt01
svt01 requested a review from a team as a code owner October 22, 2026 12:01
@svt01

svt01 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

REQUESTED state

Command:
image
DB status write:
image


IN_PROGRESS state

Command:
image
DB status write:
image


ACTIVE state

Command:
image
DB status write:
image


@svt01

svt01 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

REQUESTED state

Command:
image
DB status write:
image

IN_PROGRESS state

Command:
image
DB status write:
image

DEACTIVATED state

Command:
image
DB status write:
image

@svt01

svt01 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

Attaching the logs from the suite-dns job
logs_from_suite_dns.zip

mnivedithaa
mnivedithaa previously approved these changes Oct 22, 2026
Comment thread bin/mas-devops-feature-status-update Outdated
Comment thread src/mas/devops/feature_status.py Outdated
@whitfiea
whitfiea added this pull request to the merge queue Oct 23, 2026
Merged via the queue into stable with commit 4df83a3 Oct 23, 2026
3 checks passed
@whitfiea
whitfiea deleted the mascore-18566 branch October 23, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants