Skip to content

feat(cryptography): add activity synonym registration [STUD-77325]#515

Merged
alexandru-petre merged 3 commits intodevelopfrom
feat/STUD-77325
Mar 3, 2026
Merged

feat(cryptography): add activity synonym registration [STUD-77325]#515
alexandru-petre merged 3 commits intodevelopfrom
feat/STUD-77325

Conversation

@adrianignat13
Copy link
Member

@adrianignat13 adrianignat13 commented Feb 26, 2026

Summary

  • Add "Cryptography" as a search synonym for all 6 Cryptography activities (DecryptFile, DecryptText, EncryptFile, EncryptText, KeyedHashFile, KeyedHashText)
  • Uses the standard metadata-driven DisplayNameAliasKeys pattern in ActivitiesMetadata.json with a localized .resx entry

Test plan

  • Build Activities.Cryptography.sln — passes with 0 errors
  • In Studio, search the activities panel for "Cryptography" and verify all 6 activities appear
  • Verify the activities still appear when searched by their original display names

Jira: STUD-77325

@adrianignat13
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@adrianignat13
Copy link
Member Author

/azp run CI_Community.Activities.Cryptography

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

adrianignat13 and others added 3 commits March 3, 2026 14:31
…y pack

Cryptography activities lack activity synonym registration, so users
cannot find them by searching for the synonym "Cryptography" in UiPath
Studio's activity panel.

Followed the same synonym registration pattern used by Database and FTP
packs. Placed registration in the .Activities project (not .Design)
since the Cryptography pack already structures its design-time code there.

Added three new files to UiPath.Cryptography.Activities:
- ApiRegistrationBase.cs — Abstract base class with JIT-safe
  initialization pattern to prevent compilation exceptions on older
  Studio versions.
- ActivitySynonymApiRegistration.cs — Registers the "Cryptography"
  synonym for all 6 activities (DecryptFile, DecryptText, EncryptFile,
  EncryptText, KeyedHashFile, KeyedHashText) via
  IWorkflowDesignApi.ActivitySynonymService.
- DesignerMetadata.cs — IRegisterMetadata entry point that wires up
  synonym registration when Studio initializes the pack.

Modified .resx and Designer.cs to add the ActivitySynonymCryptography
resource key with value "Cryptography".

The Designer.cs property was added manually because
PublicResXFileCodeGenerator only runs inside Visual Studio, not during
CLI builds. The entry follows the exact same pattern as all other
properties in the file.

Refs: STUD-77325
…ic API

Replace the incorrect ActivitySynonymService approach (DesignerMetadata.cs,
ApiRegistrationBase.cs, ActivitySynonymApiRegistration.cs) with the standard
DisplayNameAliasKeys entries in ActivitiesMetadata.json. This follows the
established pattern documented in the activity development guide.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a “Cryptography” search synonym to Cryptography pack activities via metadata alias keys backed by a localized resource string, so activities can be found by searching “Cryptography” in Studio.

Changes:

  • Add DisplayNameAliasKeys entries to activity metadata to register the new synonym.
  • Add ActivitySynonymCryptography to the neutral .resx and regenerate the strongly-typed resource designer.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
Activities/Cryptography/UiPath.Cryptography.Activities/Resources/ActivitiesMetadata.json Registers ActivitySynonymCryptography as a display-name alias for multiple Cryptography activities.
Activities/Cryptography/UiPath.Cryptography.Activities/Properties/UiPath.Cryptography.Activities.resx Adds the ActivitySynonymCryptography resource value (“Cryptography”).
Activities/Cryptography/UiPath.Cryptography.Activities/Properties/UiPath.Cryptography.Activities.Designer.cs Adds the strongly-typed resource accessor for ActivitySynonymCryptography.
Files not reviewed (1)
  • Activities/Cryptography/UiPath.Cryptography.Activities/Properties/UiPath.Cryptography.Activities.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 834 to +836
"ShortName": "PgpGenerateKeyPair",
"DisplayNameKey": "Activity_PgpGenerateKeyPair_Name",
"DisplayNameAliasKeys": ["ActivitySynonymCryptography"],
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

PR description says the synonym is added for 6 activities (Decrypt/Encrypt/KeyedHash File/Text), but this metadata change also adds the alias to the PGP activities (PgpGenerateKeyPair, PgpSignFile, PgpClearSignFile, PgpVerify). Please either update the PR description/test plan to reflect the full scope (10 activities) or limit the change to the 6 intended activities.

Copilot uses AI. Check for mistakes.
Comment on lines +1263 to +1265
<data name="ActivitySynonymCryptography" xml:space="preserve">
<value>Cryptography</value>
</data>
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

Only the neutral (default) .resx gets the new ActivitySynonymCryptography entry, but this project ships multiple localized resource files (e.g., UiPath.Cryptography.Activities.fr.resx, .de.resx, etc.). In other packs, synonym keys are kept in all localized .resx files (see Activities/Database/UiPath.Database.Activities.Design/Properties/UiPath.Database.Activities.Design.fr.resx:286-297). Please add ActivitySynonymCryptography to the other culture-specific .resx files as well (even if the value remains 'Cryptography') to keep resource sets consistent and localizable.

Copilot uses AI. Check for mistakes.
@alexandru-petre alexandru-petre changed the title feat(cryptography): add activity synonym registration for Cryptography pack feat(cryptography): add activity synonym registration [STUD-77325] Mar 3, 2026
@alexandru-petre alexandru-petre merged commit ed56075 into develop Mar 3, 2026
13 checks passed
@alexandru-petre alexandru-petre deleted the feat/STUD-77325 branch March 3, 2026 15:16
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.

3 participants