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

[REFACTORING]: refactoring of the imports and duplicated components #99

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

OlgaYasn
Copy link
Collaborator

Pull Request Template

✨ Title

  • [FEATURE]: for a new feature
  • [EVOL]: for an enhancement
  • [FIX]: for a bug fix
  • [REFACTORING]: for a refactor

📄 Description

Please explain in detail what this PR does, why it is needed, and how it addresses a specific problem. Include any relevant context and background information.

✅ Checklist

  • I have read and followed the Contribution Guide.
  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings or errors.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

🔗 Contextual Links (optional)

Add any relevant links to tracking tickets, previous discussions, or other resources.

📸 Visuals (optional)

If possible, include images or videos that show the result of your changes.

🔍 Reviewers

Please assign at least one reviewer for this PR. The PR cannot be merged until it is approved by the reviewer(s).

@OlgaYasn OlgaYasn self-assigned this Jan 21, 2025
@OlgaYasn OlgaYasn force-pushed the refactor/ISSUE-72/code-duplication-2 branch from 12d79a6 to 3a17a0c Compare January 21, 2025 14:33
Base automatically changed from refactor/ISSUE-72/code-duplication to main January 22, 2025 09:40
@OlgaYasn OlgaYasn force-pushed the refactor/ISSUE-72/code-duplication-2 branch 3 times, most recently from 205bd27 to 626bce9 Compare January 23, 2025 14:26
@OlgaYasn OlgaYasn added the WIP Work in progress label Feb 3, 2025
@OlgaYasn OlgaYasn force-pushed the refactor/ISSUE-72/code-duplication-2 branch from 626bce9 to 656be7b Compare February 4, 2025 11:36
@OlgaYasn OlgaYasn force-pushed the refactor/ISSUE-72/code-duplication-2 branch from 656be7b to 89c434a Compare February 4, 2025 11:40
@@ -39,27 +37,16 @@ const SERVER_ENV_CONFIGURATION = {
/**
* Get the current context of the server.
*/
const getCurrentContext = () => (execEnv?.includes('--dev') ? 'development' : 'production');
const currentContext = getEnvironmentContext();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

getEnvContext

import { ServerConfigType, ServerEnvConfigType } from '../types/ServerConfigType.ts';
import { getEnvironmentContext } from './getEnvironmentContext.ts';

export const getServerConfig = (
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Garder que getServerConfig sans exposer getEnvContext

@@ -1,4 +1,4 @@
import { AppLogger, ServerUtils } from '@v6y/core-logic';
import { AppLogger, CorsOptions, ServerUtils } from '@v6y/core-logic';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ajouter à getServerConfig

try {
if (!dependencies?.length) {
if (!data?.length) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add to @Core-Logic : core avec zipUtils, FileUtils... Rename CsvUtils -> exportDataToCsv

@OlgaYasn OlgaYasn force-pushed the refactor/ISSUE-72/code-duplication-2 branch from a386601 to 3bdf44a Compare February 6, 2025 10:09
@OlgaYasn OlgaYasn force-pushed the refactor/ISSUE-72/code-duplication-2 branch from 7086b83 to c0e8c70 Compare February 6, 2025 10:24
@OlgaYasn OlgaYasn added PR in review PR in review Review is Welcome and removed WIP Work in progress PR in review PR in review labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants