Skip to content

DM-49102 Remove Production related code from the web app#164

Merged
emanehab99 merged 5 commits intomainfrom
tickets/DM-49102
Mar 11, 2025
Merged

DM-49102 Remove Production related code from the web app#164
emanehab99 merged 5 commits intomainfrom
tickets/DM-49102

Conversation

@emanehab99
Copy link
Copy Markdown
Collaborator

Remove any code that's using Production table as it will be deprecated soon

@emanehab99 emanehab99 requested a review from mr-asher February 26, 2025 04:58
@emanehab99 emanehab99 self-assigned this Feb 26, 2025
Copy link
Copy Markdown
Member

@ctslater ctslater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, with two small improvements noted.

production_campaigns.append(campaign_details)
production_list[p.name] = production_campaigns

production_list: dict[str, list] = {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making this a collections.defaultdict would avoid the need for an if-statement later.

production_list: dict[str, list] = {}
campaigns = await get_all_campaigns(session)
for campaign in campaigns:
production_name = campaign.fullname.split("/")[0]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think production_name will eventually become part of the campaign object, so moving this string-parsing into get_campaign_details would make it easier to adjust in the future.

@ctslater
Copy link
Copy Markdown
Member

ctslater commented Mar 5, 2025

Sorry I noticed one more thing: the "Steps" page has a go-back link that says the production name, but should be switched to something generic like "Back to Campaigns"

@emanehab99 emanehab99 merged commit 48f5c75 into main Mar 11, 2025
7 checks passed
@emanehab99 emanehab99 deleted the tickets/DM-49102 branch March 11, 2025 04:51
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.

2 participants