Skip to content

Settings > Application Settings > Replication tab enhancements #9388

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

elsamaryv
Copy link
Contributor

@elsamaryv elsamaryv commented Apr 1, 2025

Converts Settings > Replication tab to React. Also includes jest and cypress tests.

Before

replication tab (old) 1 replication tab (old) 2

Add subscription
Add subscription - before

Validation failure
Validation failure - old

After

replication tab (new) 1

Add subscription modal
add-sub-modal

Subscription table
sub_table_with_btns

Validation failure
Validation failure

Edit subscription
Edit sub modal

@elsamaryv elsamaryv changed the title [WIP] Settings > Application Settings > Replication tab enhancements Settings > Application Settings > Replication tab enhancements Apr 7, 2025
@elsamaryv elsamaryv marked this pull request as ready for review April 7, 2025 13:17
@elsamaryv elsamaryv requested a review from a team as a code owner April 7, 2025 13:17
@miq-bot miq-bot removed the wip label Apr 9, 2025
@elsamaryv elsamaryv force-pushed the settings-replication-form-enhancements branch from 56e0cc4 to f026475 Compare April 22, 2025 10:29
@miq-bot
Copy link
Member

miq-bot commented Apr 22, 2025

Checked commits elsamaryv/manageiq-ui-classic@f560dd6~...c4a2ca7 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.62.0, and yamllint
3 files checked, 1 offense detected

app/views/ops/_settings_replication_tab.html.haml

  • ⚠️ - Line 2 - id attribute must be in lisp-case

@elsamaryv elsamaryv force-pushed the settings-replication-form-enhancements branch from c4a2ca7 to 10d350f Compare July 28, 2025 10:19
@elsamaryv elsamaryv force-pushed the settings-replication-form-enhancements branch from 10d350f to 84156ea Compare July 28, 2025 10:31
};

const validateSubscription = (selectedRow) => {
debugger
Copy link
Member

Choose a reason for hiding this comment

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

@elsamaryv can you please remove this line

Comment on lines 5 to 7
:javascript
ManageIQ.angular.app.value('pglogicalReplicationFormId', 'new');
miq_bootstrap('#form_div');
Copy link
Member

Choose a reason for hiding this comment

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

I think we can remove these lines too since the form is now in React, are these needed for anything on the form?

cy.login();
cy.intercept('POST', '/ops/accordion_select?id=rbac_accord').as('accordion');
cy.menu('Settings', 'Application Settings');
cy.wait(1000);
Copy link
Member

Choose a reason for hiding this comment

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

Can we avoid these time based waits? Maybe using intercepts instead

@GilbertCherrie
Copy link
Member

Also, the cypress tests are consistently failing, we need to get them passing some what consistently or we can't merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants