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

Api #403

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Api #403

wants to merge 16 commits into from

Conversation

YehualashetGit
Copy link
Contributor

No description provided.

✨ create Category entity with relation to DSL and Data point
✨ create DSL entitry with relation to category
✨ create DataPoint Module
✨ create Category Module
 ✨add controller for DSL, Categoty
🚨 fix sonar lint issue
✏️ fix type error
🚚 rename files
🚚 rename datasetEntry to DataSetEntries
⚰️  Remove Swagger Documentation
@sonarcloud
Copy link

sonarcloud bot commented Jul 5, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.2% 0.2% Duplication

Comment on lines +8 to +12
host: process.env.DB_HOST,
port: process.env.DB_PORT as any,
username: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
database: process.env.DB_DATABASE,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we have a pre-screen checking if those variables are available in env? I just dont know what happens if one of those variables is null?

Comment on lines +15 to +16
host: process.env.DB_HOST,
database: process.env.DB_DATABASE,
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question with one below that what happens if one of those is null?
And I was wondering that we should put all retrieving env variables in 1 module/file or we use it directly in different files?

I think it is easier for us to change if we put them all in one file. Like we want to change variable name in .env file? Also, we may repeat running process.env many times when we scatter them in many files.
On other hand, use them directly is easier and faster to develop.

Copy link
Contributor

@maingockien01 maingockien01 Jul 8, 2021

Choose a reason for hiding this comment

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

I dont think this is a big problem since we can refactor our code quickly later. But I just want to know which one should we chose.

@squash-labs
Copy link

squash-labs bot commented Jan 25, 2023

Manage this branch in Squash

Test this branch here: https://api-av8tm.squash.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants