Skip to content

Remove deprecated APIs and unused variables#1196

Merged
renemadsen merged 3 commits intomasterfrom
copilot/remove-code-warnings
Jan 2, 2026
Merged

Remove deprecated APIs and unused variables#1196
renemadsen merged 3 commits intomasterfrom
copilot/remove-code-warnings

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 2, 2026

Eliminates compilation and CI warnings from obsolete Entity Framework methods, unused exception variables, and deprecated GitHub Actions commands.

Changes

C# Code

  • Removed obsolete TranslateParameterizedCollectionsToConstants() calls in MySQL context configuration (EformWorkflowPlugin.cs)
  • Changed unused exception variable to discard pattern: catch (Exception ex)catch (Exception)
  • Replaced deprecated HtmlConverter.ParseHtml() with ParseBody() (WordProcessor.cs)

GitHub Actions

  • Migrated set-output commands to $GITHUB_OUTPUT environment files in both workflow files
- run: echo ::set-output name=VERSION::$(git describe --abbrev=0 --tags)
+ run: echo "VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT
Original prompt

This section details on the original issue you should resolve

<issue_title>Get rid of warnings in codebase</issue_title>
<issue_description>```
workflow-dotnet-test: eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/EformWorkflowPlugin.cs#L441
The variable 'ex' is declared but never used
workflow-dotnet-test: eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/EformWorkflowPlugin.cs#L163
'RelationalDbContextOptionsBuilder<MySqlDbContextOptionsBuilder, MySqlOptionsExtension>.TranslateParameterizedCollectionsToConstants()' is obsolete: 'Use UseParameterizedCollectionMode instead.'
workflow-dotnet-test: eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/EformWorkflowPlugin.cs#L152
'RelationalDbContextOptionsBuilder<MySqlDbContextOptionsBuilder, MySqlOptionsExtension>.TranslateParameterizedCollectionsToConstants()' is obsolete: 'Use UseParameterizedCollectionMode instead.'
workflow-dotnet-test: eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/Helpers/WordProcessor.cs#L62
'HtmlConverter.ParseHtml(string, CancellationToken)' is obsolete: 'Use ParseBody instead for output clarification'
workflow-dotnet-test: eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/EformWorkflowPlugin.cs#L441
The variable 'ex' is declared but never used
workflow-dotnet-test: eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/EformWorkflowPlugin.cs#L163
'RelationalDbContextOptionsBuilder<MySqlDbContextOptionsBuilder, MySqlOptionsExtension>.TranslateParameterizedCollectionsToConstants()' is obsolete: 'Use UseParameterizedCollectionMode instead.'
workflow-dotnet-test: eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/EformWorkflowPlugin.cs#L152
'RelationalDbContextOptionsBuilder<MySqlDbContextOptionsBuilder, MySqlOptionsExtension>.TranslateParameterizedCollectionsToConstants()' is obsolete: 'Use UseParameterizedCollectionMode instead.'
workflow-dotnet-test: eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/Helpers/WordProcessor.cs#L62
'HtmlConverter.ParseHtml(string, CancellationToken)' is obsolete: 'Use ParseBody instead for output clarification'
workflow-build
The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
workflow-build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
workflow-build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/


## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 2, 2026 11:06
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix codebase warnings related to unused variables and obsolete methods Remove deprecated APIs and unused variables Jan 2, 2026
Copilot AI requested a review from renemadsen January 2, 2026 11:12
@renemadsen renemadsen marked this pull request as ready for review January 2, 2026 11:14
@renemadsen renemadsen merged commit 857f064 into master Jan 2, 2026
4 checks passed
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.

Get rid of warnings in codebase

2 participants