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

EW-998 created a new sync Module #5222

Merged
merged 17 commits into from
Sep 9, 2024
Merged

EW-998 created a new sync Module #5222

merged 17 commits into from
Sep 9, 2024

Conversation

Fshmit
Copy link
Contributor

@Fshmit Fshmit commented Sep 3, 2024

Description

In this Ticket a new module for the TSP Sync is created. The module follows the same architectural concept as existing modules (console, services, etc.).
A Feature Flag for the TSP Sync is added to dof_app_deploy (see linked PR below)

Links to Tickets or other pull requests

Changes

Datasecurity

Deployment

New Repos, NPM pakages or vendor scripts

Approval for review

  • DEV: If api was changed - generate-client:server was executed in vue frontend and changes were tested and put in a PR with the same branch name.
  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

Notice: Please remove the WIP label if the PR is ready to review, otherwise nobody will review it.

@Fshmit Fshmit requested a review from mkreuzkam-cap September 4, 2024 12:51
Copy link
Contributor

@mkreuzkam-cap mkreuzkam-cap left a comment

Choose a reason for hiding this comment

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

You use tabs instead of spaces. Maybe check your editor settings

apps/server/src/infra/sync/console/sync.console.ts Outdated Show resolved Hide resolved
apps/server/src/infra/sync/console/sync.console.ts Outdated Show resolved Hide resolved
apps/server/src/infra/sync/service/sync.service.ts Outdated Show resolved Hide resolved
apps/server/src/infra/sync/tsp/tsp-sync.strategy.spec.ts Outdated Show resolved Hide resolved
apps/server/src/infra/sync/console/sync.console.ts Outdated Show resolved Hide resolved
apps/server/src/infra/sync/console/sync.console.ts Outdated Show resolved Hide resolved
apps/server/src/infra/sync/service/sync.service.spec.ts Outdated Show resolved Hide resolved
apps/server/src/infra/sync/service/sync.service.spec.ts Outdated Show resolved Hide resolved
@Fshmit Fshmit marked this pull request as ready for review September 5, 2024 14:19
@Fshmit Fshmit requested a review from alweber-cap September 6, 2024 09:05
command: 'run <target>',
description: 'Starts the synchronization process.',
})
public async startSync(target: string): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

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

what if target is empty?

Copy link
Contributor Author

@Fshmit Fshmit Sep 9, 2024

Choose a reason for hiding this comment

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

It is aborted with the error message "missing required argument "

export class SyncService {
private strategies: Map<SyncStrategyTarget, SyncStrategy> = new Map<SyncStrategyTarget, SyncStrategy>();

constructor(private readonly logger: Logger, @Optional() private readonly tspSyncStrategy?: TspSyncStrategy) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this works alright wit hone strategy, but we need to find a better way if there is ever a second one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

noticed ✅

Copy link

sonarqubecloud bot commented Sep 9, 2024

@Fshmit Fshmit merged commit ceb0407 into main Sep 9, 2024
77 checks passed
@Fshmit Fshmit deleted the EW-998 branch September 9, 2024 08:14
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