Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: initializing overseer (MAPCO-4436) #1

Merged
merged 5 commits into from
Jul 22, 2024
Merged

refactor: initializing overseer (MAPCO-4436) #1

merged 5 commits into from
Jul 22, 2024

Conversation

almog8k
Copy link
Collaborator

@almog8k almog8k commented Jul 16, 2024

Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added
Chore

Removing unnecessary rest-api boilerplate, initialling overseer worker service

@almog8k almog8k requested a review from CL-SHLOMIKONCHA July 17, 2024 06:36
package.json Outdated Show resolved Hide resolved
src/common/constants.ts Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

This file can only amount to that:

import express from 'express';
import { injectable } from 'tsyringe';
import { collectMetricsExpressMiddleware } from '@map-colonies/telemetry';


@injectable()
export class ServerBuilder {
  private readonly serverInstance: express.Application;

  public constructor() {
    this.serverInstance = express();
  }

  public build(): express.Application {
    this.serverInstance.use(collectMetricsExpressMiddleware({})); // make sure the service responding with the metrics (/metrics)

    return this.serverInstance;
  }
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed unnecessary builds.

@CL-SHLOMIKONCHA
Copy link
Contributor

Please change the commit to 'refactor' + fix the typo 'initialling' => 'initializing'

@almog8k almog8k changed the title chore: initialling overseer (MAPCO-4436) refactor: initializing overseer (MAPCO-4436) Jul 21, 2024
Copy link
Contributor

@CL-SHLOMIKONCHA CL-SHLOMIKONCHA left a comment

Choose a reason for hiding this comment

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

Nice!

@almog8k almog8k merged commit bf25759 into master Jul 22, 2024
6 of 8 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.

2 participants