Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Implements facility and routes endpoints #52

Closed
wants to merge 43 commits into from

Conversation

arihant-2310
Copy link
Contributor

Subject: "<feat #39 >"
Assignees: "Kites-hackathon-squad"

Closes/Fixes/Resolves

Closes #39

Explain the feature/fix

This pull request adds certain end points for creation, updation and deletion of facilities and facility types along with the end point for creation of routes.

Does this PR introduce a breaking change

No

Screenshots

View Screenshots

image

Ready-for-merge Checklist

  • Expected files: all files in this pull request are related to one feature request or issue (no stragglers)?
  • Does the change have appropriate unit tests?
  • Did tests pass?
  • Did you update or add any necessary documentation (README.md, WHY.md, etc.)?
  • Was this feature demo'd and the design review approved?

@arihant-2310 arihant-2310 requested a review from a team as a code owner January 30, 2021 09:46
@lgtm-com
Copy link

lgtm-com bot commented Jan 30, 2021

This pull request introduces 2 alerts when merging 56ca3d5 into 6b1b7a0 - view on LGTM.com

new alerts:

  • 2 for Unused variable, import, function or class

longitude: string;

@ApiProperty({ type: 'string' })
contact: string;
Copy link
Member

Choose a reason for hiding this comment

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

What is planning to store here.? can you please give a general view on this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To store the details about each facility like their address, photos, contact. Each entry belongs to a particular facility type. For eg. Theatres, Museums, View points are entries for a facility type "Entertainment", Hospitals, Medical Shops are part of facility type "Healthcare".

Copy link
Contributor

Choose a reason for hiding this comment

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

@arihant-2310 what is planning to store in the field 'contact'? phone number or address ?

longitude: string;

@ApiProperty({ type: 'string' })
contact: string;
Copy link
Member

Choose a reason for hiding this comment

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

What is planning to store here.? can you please give a general view here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A data transfer object template which would be required to update an already created facility.

}

@Put(':id')
@Get('/:id')
Copy link
Member

Choose a reason for hiding this comment

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

Which data you are calling on this api.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There may be different types of facilities like Entertainment, Health, Finance etc . To get the details about the particular facility type we used this endpoint.

Copy link
Contributor

Choose a reason for hiding this comment

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

@riginoommen we have field in facilities to store the type_id. And this API is part of CRUD of facility_types

@lgtm-com
Copy link

lgtm-com bot commented Jan 30, 2021

This pull request introduces 1 alert when merging 6d022c2 into 9a5008d - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Jan 30, 2021

This pull request introduces 1 alert when merging b14aeb3 into 6f46180 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Jan 30, 2021

This pull request introduces 1 alert when merging 12544a2 into 6f46180 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Copy link
Contributor

@sreenadh sreenadh left a comment

Choose a reason for hiding this comment

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

Please see the comments

src/facilities/migrations/1611948310353-createtabletype.ts Outdated Show resolved Hide resolved
src/facilities/migrations/1611948310353-createtabletype.ts Outdated Show resolved Hide resolved
src/facilities/migrations/1611981680527-facilities.ts Outdated Show resolved Hide resolved
src/facilities/migrations/1611981680527-facilities.ts Outdated Show resolved Hide resolved
src/facilities/migrations/1611981680527-facilities.ts Outdated Show resolved Hide resolved
src/routes/migrations/1611943981900-routes.ts Outdated Show resolved Hide resolved
src/routes/migrations/1611943981900-routes.ts Outdated Show resolved Hide resolved
src/routes/routes.repository.ts Outdated Show resolved Hide resolved
src/routes/routes.repository.ts Outdated Show resolved Hide resolved
src/routes/dto/create-route.dto.ts Outdated Show resolved Hide resolved
psjishnu and others added 7 commits January 30, 2021 18:28
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
@sonarcloud
Copy link

sonarcloud bot commented Jan 30, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

psjishnu and others added 3 commits January 30, 2021 18:29
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
@sonarcloud
Copy link

sonarcloud bot commented Jan 30, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

2 similar comments
@sonarcloud
Copy link

sonarcloud bot commented Jan 30, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Jan 30, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

psjishnu and others added 2 commits January 30, 2021 18:31
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
Co-authored-by: Sreenadh H <sreenadh@sreenadh.in>
@sonarcloud
Copy link

sonarcloud bot commented Jan 30, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

2 similar comments
@sonarcloud
Copy link

sonarcloud bot commented Jan 30, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Jan 30, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@lgtm-com
Copy link

lgtm-com bot commented Jan 30, 2021

This pull request introduces 1 alert when merging 056ce75 into 6f46180 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

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

Successfully merging this pull request may close these issues.

Amenities
6 participants