Skip to content

[ENGG-5243]: dynamic variables provider and resolver#4324

Merged
rohanmathur91 merged 9 commits intoENGG-5180from
ENGG-5243
Feb 13, 2026
Merged

[ENGG-5243]: dynamic variables provider and resolver#4324
rohanmathur91 merged 9 commits intoENGG-5180from
ENGG-5243

Conversation

@rohanmathur91
Copy link
Copy Markdown
Member

Closes issue:

📜 Summary of changes:

🎥 Demo Video:

Video/Demo:

✅ Checklist:

  • Make sure linting and unit tests pass.
  • No install/build warnings introduced.
  • Verified UI in browser.
  • For UI changes, added/updated analytics events (if applicable).
  • For changes in extension's code, manually tested in Chrome and Firefox.
  • Added/updated unit tests for this change.
  • Raised pull request to update corresponding documentation (if already exists).
  • Added demo video showing the changes in action (if applicable).

🧪 Test instructions:

🔗 Other references:

@linear
Copy link
Copy Markdown

linear bot commented Feb 11, 2026

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 11, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ENGG-5243

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@iostreamer-X iostreamer-X left a comment

Choose a reason for hiding this comment

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

Please add detailed documentation of what each class is doing and why.


export abstract class DynamicVariableProvider {
abstract readonly name: string;
abstract readonly variables: Map<string, DynamicVariable>;
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.

Given this is a map where the value is a DynamicVariable, i think this should be renamed to variableNames. Currently, this confused me as to why are we caching variable values? Only to realise that it's just a map of variable names and actual DynamicVariable

import { DynamicVariableProvider } from "../providers";

export class HandlebarsResolver extends DynamicVariableResolver {
private hbs: typeof Handlebars | null = null;
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.

This property doesn't seem to be used.

…post response script (#4326)

* add dynamic variables support in pre and post response scripts

* update dynamic variable resolver instance name
@rohanmathur91 rohanmathur91 merged commit b69edcd into ENGG-5180 Feb 13, 2026
2 of 3 checks passed
@rohanmathur91 rohanmathur91 deleted the ENGG-5243 branch February 13, 2026 07:03
rohanmathur91 added a commit that referenced this pull request Feb 17, 2026
* add DynamicVariableProvider

* add faker provider

* add DynamicVariableResolver

* add resolver

* add comment

* fix: generate method

* refactor

* add comments

* [ENGG-5246] feat: add dynamic variable support in api client pre and post response script (#4326)

* add dynamic variables support in pre and post response scripts

* update dynamic variable resolver instance name
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