Skip to content

ExportReport ChkBx Disabled on Automate tab#3765

Merged
Maheshkale447 merged 5 commits into
Releases/Betafrom
BugFix/ExportChkBxDisableOnBF
Jun 13, 2024
Merged

ExportReport ChkBx Disabled on Automate tab#3765
Maheshkale447 merged 5 commits into
Releases/Betafrom
BugFix/ExportChkBxDisableOnBF

Conversation

@AmanPrasad43

@AmanPrasad43 AmanPrasad43 commented Jun 13, 2024

Copy link
Copy Markdown
Contributor

Thank you for your contribution.
Before submitting this PR, please make sure:

  • PR description and commit message should describe the changes done in this PR
  • Verify the PR is pointing to correct branch i.e. Release or Beta branch if the code fix is for specific release , else point it to master
  • Latest Code from master or specific release branch is merged to your branch
  • No unwanted\commented\junk code is included
  • No new warning upon build solution
  • Code Summary\Comments are added to my code which explains what my code is doing
  • Existing unit test cases are passed
  • New Unit tests are added for your development
  • Sanity Tests are successfully executed for New and Existing Functionality
  • Verify that changes are compatible with all relevant browsers and platforms.
  • After creating pull request there should not be any conflicts
  • Resolve all Codacy comments
  • Builds and checks are passed before PR is sent for review
  • Resolve code review comments
  • Update the Help Library document to match any feature changes

Summary by CodeRabbit

  • Bug Fixes

    • Renamed checkbox element for consistent UI behavior in the Export Results to ALM configuration page.
  • New Features

    • Improved configuration handling with the addition of new logic to enable/disable UI elements based on logger properties.

@coderabbitai

coderabbitai Bot commented Jun 13, 2024

Copy link
Copy Markdown
Contributor

Walkthrough

The recent updates involve renaming a checkbox element in the UI from ExportReportLink to ExportReportLinkChkbx in the ExportResultsToALMConfigPage.xaml and associated changes in the code-behind file (ExportResultsToALMConfigPage.xaml.cs). Additionally, new logic has been introduced for handling export report settings, including initializing an ExecutionLoggerConfiguration instance and updating event handling and UI bindings accordingly.

Changes

File(s) Summary of Changes
.../ExportResultsToALMConfigPage.xaml Renamed checkbox element from ExportReportLink to ExportReportLinkChkbx.
.../ExportResultsToALMConfigPage.xaml.cs Added YamlDotNet.Core namespace, initialized ExecutionLoggerConfiguration, renamed ExportReportLink to ExportReportLinkChkbx, updated event handling, and added conditional logic for UI elements based on _executionLogger properties.

Poem

With bytes and lines, our code transforms,
A tiny change, yet full of warmth.
Checkboxes renamed, bindings precise,
Loggers initialized, connections nice.
Our interface now with newfound grace,
Sweet success in every trace.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 37d0bd7 and 58ba615.

Files selected for processing (2)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml (1 hunks)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml.cs (3 hunks)
Files skipped from review due to trivial changes (1)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml
Additional comments not posted (3)
Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml.cs (3)

69-69: Updated binding for ExportReportLinkChkbx looks correct and aligns with the PR objectives.


100-100: Binding update in the private constructor is consistent with the public constructor, ensuring uniform behavior across instances.


130-130: Disabling ExportReportLinkChkbx is implemented as described in the PR, effectively meeting the specified requirements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 58ba615 and 4ab4500.

Files selected for processing (2)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml (1 hunks)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml.cs (6 hunks)
Files not reviewed due to errors (1)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml.cs (Error: Server error. Please try again later.)
Files skipped from review due to trivial changes (1)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4ab4500 and 1259bfc.

Files selected for processing (1)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml.cs (6 hunks)
Additional comments not posted (5)
Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml.cs (5)

57-57: New field initialization: _executionLogger is correctly instantiated.

This ensures that the _executionLogger is ready to use immediately, supporting the modifications related to event handling and UI logic based on its properties.


71-71: Checkbox renaming from ExportReportLink to ExportReportLinkChkbx is reflected in the bindings.

This change aligns with the renaming in the XAML file and ensures that the bindings are correctly updated to interact with the new checkbox name.

Also applies to: 144-144


87-88: Event handling and conditional logic based on _executionLogger properties:

The added event handler _executionLogger_PropertyChanged effectively manages the UI state of checkboxes based on the properties of _executionLogger. This dynamic enabling/disabling is crucial for responsive UI behavior.

Also applies to: 103-129


87-100: Initialization of _executionLogger with a specific configuration from WorkSpace.Instance:

This ensures that _executionLogger is configured with the current workspace settings, which is essential for maintaining consistent behavior across different environments.


174-174: Disabling ExportReportLinkChkbx in the Init method:

Explicitly disabling this checkbox in the initialization phase is a clear and direct way to control the UI based on predefined conditions or configurations.

using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using YamlDotNet.Core;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Namespace addition: YamlDotNet.Core seems unnecessary as there are no visible uses of it in the provided code.

Please verify if this namespace is required, or consider removing it to clean up the code.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4ab4500 and 3b0505b.

Files selected for processing (2)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml (1 hunks)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml.cs (6 hunks)
Files skipped from review due to trivial changes (1)
  • Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml
Additional comments not posted (5)
Ginger/Ginger/Run/RunSetActions/ExportResultsToALMConfigPage.xaml.cs (5)

37-37: Namespace YamlDotNet.Core added for YAML processing. Ensure that all YAML data is sanitized to avoid injection attacks.


Line range hint 57-71: Initialization of _executionLogger and its bindings to UI elements. Ensure that the instance is properly disposed of if necessary to prevent memory leaks.

Also applies to: 87-88


103-129: Method _executionLogger_PropertyChanged handles UI updates based on property changes. Ensure that all property changes trigger the correct UI updates without causing performance issues.


174-174: The Init method disables the ExportReportLinkChkbx. Ensure this is the intended behavior and consistent with user expectations.


90-100: Conditional logic for UI controls based on _executionLogger properties. Verify through UI tests that the controls behave as expected under different conditions.

Also applies to: 103-129

@Maheshkale447
Maheshkale447 merged commit d783bb1 into Releases/Beta Jun 13, 2024
@Maheshkale447
Maheshkale447 deleted the BugFix/ExportChkBxDisableOnBF branch June 13, 2024 17:02
@coderabbitai coderabbitai Bot mentioned this pull request Oct 24, 2024
15 tasks
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