-
Notifications
You must be signed in to change notification settings - Fork 109
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
Fixes #37228 - Replace Ansible/Roles page with React component #696
base: master
Are you sure you want to change the base?
Fixes #37228 - Replace Ansible/Roles page with React component #696
Conversation
db8bddf
to
21c7da7
Compare
21c7da7
to
9eb1804
Compare
What is blocking us from using this change? Possibly at the start of a new release cycle? |
I'll review it ASAP. |
The functionality works well. However, the page is loading much slower than before. I’m wondering if it’s an issue on my side or if the new code is causing the app to load slower. |
@nofaralfasi |
webpack/components/AnsibleRoles/components/AnsibleRolesTableRowActionButton.js
Show resolved
Hide resolved
Of course, the site load would be pretty fast but rendering the page takes longer as its done in the browser itself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Foreman we have the TableIndexPage
component which is intended for these index pages. Have you considered using that and if so, why was it insufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to Ewouds question, the js loading is slower between ruby and js, but faster between full React pages.
Can this be a full react page? it will need to be added in webpack/routes/routes.js
, config/routes.rb
@@ -1,47 +1,19 @@ | |||
<%= webpacked_plugins_js_for :foreman_ansible %> | |||
<%= webpacked_plugins_css_for :foreman_ansible %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webpacked_plugins_css_for
is deprecated, plugin css is already loaded.'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be best if #715 could be merged, so I can rebase this branch.
Sorry for the delay, I was occupied otherwise. |
Thanks, that's what I was looking for. |
^^Nevermind, I just noticed the |
Feature #37228
The new component acts as a drop-in replacement for the previously used erb-table.
This is required by #707