Skip to content
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

Log Collection Form conversion from Angular to React #8591

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

jeffibm
Copy link
Member

@jeffibm jeffibm commented Jan 6, 2023

Issue - #7603 for ops/_log_collection.html.haml

Before
image

After
image

@jeffibm jeffibm requested a review from a team as a code owner January 6, 2023 14:06
@miq-bot miq-bot added the wip label Jan 6, 2023
@jeffibm jeffibm mentioned this pull request Jan 6, 2023
10 tasks
@jeffibm jeffibm force-pushed the log-collection-from-conversion branch 2 times, most recently from ba3bfb5 to 3c32957 Compare January 9, 2023 12:42
@jeffibm jeffibm requested a review from MelsHyrule January 9, 2023 13:06
@jeffibm jeffibm changed the title [WIP] Log Collection Form conversion from Angular to React Log Collection Form conversion from Angular to React Jan 9, 2023
@miq-bot miq-bot removed the wip label Jan 9, 2023
@jeffibm jeffibm force-pushed the log-collection-from-conversion branch from fb05d54 to fda6311 Compare January 9, 2023 13:08
@miq-bot
Copy link
Member

miq-bot commented Jan 9, 2023

Checked commit jeffbonson@fda6311 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
1 file checked, 2 offenses detected

app/views/ops/_log_collection.html.haml

  • ⚠️ - Line 1 - Avoid using instance variables in partials views
  • ⚠️ - Line 4 - Layout/TrailingEmptyLines: Final newline missing.

describe('Diagnostics Collect Log form component', () => {
const options = {
'': '<No Depot>',
FileDepotFtp: 'FTP',
Copy link
Member

Choose a reason for hiding this comment

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

were these hardcoded previously? I thought we offered them via OPTIONS

Copy link
Member

Choose a reason for hiding this comment

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

Gah sorry - this is the spec

Copy link
Member

@Fryguy Fryguy left a comment

Choose a reason for hiding this comment

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

LGTM - would also like @manageiq/committers-ui to review

const createSchema = (initialData, options) => {
const fields = [{
component: componentTypes.SUB_FORM,
title: __(`Editing Log Depot Settings for ${initialData.logType}: ${initialData.displayName}`),
Copy link
Member

@Fryguy Fryguy Jan 17, 2023

Choose a reason for hiding this comment

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

@jeffibm As per ManageIQ/manageiq#22309 (comment) this should probably be something like

Suggested change
title: __(`Editing Log Depot Settings for ${initialData.logType}: ${initialData.displayName}`),
title: sprintf(__(`Editing Log Depot Settings for %s: %s`), initialData.logType, initialData.displayName),

Copy link
Member Author

Choose a reason for hiding this comment

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

this change is handled in a different PR - #8605

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.

4 participants