feat(cryptography): add activity synonym registration [STUD-77325]#515
feat(cryptography): add activity synonym registration [STUD-77325]#515alexandru-petre merged 3 commits intodevelopfrom
Conversation
|
/azp run |
|
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. |
|
/azp run CI_Community.Activities.Cryptography |
|
Azure Pipelines failed to run 1 pipeline(s). |
…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>
2874b70 to
0f2a1b7
Compare
|
There was a problem hiding this comment.
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
DisplayNameAliasKeysentries to activity metadata to register the new synonym. - Add
ActivitySynonymCryptographyto the neutral.resxand 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.
| "ShortName": "PgpGenerateKeyPair", | ||
| "DisplayNameKey": "Activity_PgpGenerateKeyPair_Name", | ||
| "DisplayNameAliasKeys": ["ActivitySynonymCryptography"], |
There was a problem hiding this comment.
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.
| <data name="ActivitySynonymCryptography" xml:space="preserve"> | ||
| <value>Cryptography</value> | ||
| </data> |
There was a problem hiding this comment.
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.



Summary
Test plan
Jira: STUD-77325