Skip to content

Conversation

@pratikpatel351
Copy link
Collaborator

Users should be able to set up multiple extensions on a single server for the Background worker.
Removed singleton extension object.

@pratikpatel351 pratikpatel351 force-pushed the multi-extension-support branch from 2437caa to f773b90 Compare October 28, 2021 08:04
@brijeshgajjarfynd brijeshgajjarfynd changed the base branch from pre-release to main October 8, 2023 13:49
try {
const clusterId = req.params.cluster_id;
if (clusterId) {
extension = ExtensionFactory.getExtension(clusterId)
Copy link

Choose a reason for hiding this comment

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

ExtensionFactory import is missing

try {
const cluster_id = req.params.cluster_id;
if (cluster_id) {
ext = ExtensionFactory.getExtension(cluster_id)
Copy link

Choose a reason for hiding this comment

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

ExtensionFactory import is missing

- Specific routes will be matched first based on routing logic of Express so moving cluster id based route as first
const clusterId = req.params.cluster_id;
if (clusterId) {
extension = ExtensionFactory.getExtension(clusterId)
}
Copy link

Choose a reason for hiding this comment

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

req.extension = extension;

Injection of extension instance in the request object will be helpful to get the cluster_id

vivek-gofynd pushed a commit that referenced this pull request Jan 4, 2024
0.1.14
@pooransuthar1999 pooransuthar1999 force-pushed the multi-extension-support branch from 3262b72 to 8713884 Compare May 15, 2024 08:51
@pooransuthar1999 pooransuthar1999 force-pushed the multi-extension-support branch from 8713884 to 5134791 Compare May 16, 2024 11:38
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.

5 participants