Skip to content

Commit

Permalink
Merge pull request #69 from jaydenchee97/feature
Browse files Browse the repository at this point in the history
update workflow
  • Loading branch information
jaydenchee97 authored Sep 22, 2024
2 parents 51cf478 + 0cfa08b commit 94c1f55
Show file tree
Hide file tree
Showing 16 changed files with 298 additions and 150 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/dependency-review.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,3 @@ jobs:
-Dsonar.report.export.path=sonar-report.json
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Fetch SonarCloud report
run: |
# Fetch the taskId
taskId=$(curl -u ${{ secrets.SONAR_TOKEN }}: "https://sonarcloud.io/api/ce/component?component=jaydenchee97_unirent" | jq -r '.currentTask.id')
# Fetch the analysisId from the task
analysisId=$(curl -u ${{ secrets.SONAR_TOKEN }}: "https://sonarcloud.io/api/ce/task?id=$taskId" | jq -r '.task.analysisId')
# Fetch the quality gate result
curl -u ${{ secrets.SONAR_TOKEN }}: "https://sonarcloud.io/api/qualitygates/project_status?analysisId=$analysisId" -o sonar-report.json
- name: Upload SonarCloud Report Artifact
uses: actions/upload-artifact@v3
with:
name: sonarcloud-report
path: sonar-report.json
3 changes: 2 additions & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Amplify.configure({

});


// Amplify.configure({awsExports});

export default function App() {
Expand All @@ -43,7 +44,7 @@ export default function App() {
<NavigationContainer>
<Authenticator.Provider>
{/* <HomeStack /> */}
<AppStack />
<AppStack />
</Authenticator.Provider>
{/* <AppStack /> */}

Expand Down
8 changes: 0 additions & 8 deletions amplify/README.md

This file was deleted.

1 change: 1 addition & 0 deletions amplify/backend/api/unirent/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type User @model @auth(rules: [{allow: public}]) {
id: ID!
name: String!
status: String
userType: String
Accommodations: [Accommodation] @hasMany(indexName: "byUser", fields: ["id"])
ChatRooms: [ChatRoom] @manyToMany(relationName: "UserChatRoom")
Messages: [Message] @hasMany(indexName: "byUser", fields: ["id"])
Expand Down
118 changes: 59 additions & 59 deletions amplify/cli.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
{
"features": {
"graphqltransformer": {
"addmissingownerfields": true,
"improvepluralization": false,
"validatetypenamereservedwords": true,
"useexperimentalpipelinedtransformer": true,
"enableiterativegsiupdates": true,
"secondarykeyasgsi": true,
"skipoverridemutationinputtypes": true,
"transformerversion": 2,
"suppressschemamigrationprompt": true,
"securityenhancementnotification": false,
"showfieldauthnotification": false,
"usesubusernamefordefaultidentityclaim": true,
"usefieldnameforprimarykeyconnectionfield": false,
"enableautoindexquerynames": true,
"respectprimarykeyattributesonconnectionfield": true,
"shoulddeepmergedirectiveconfigdefaults": false,
"populateownerfieldforstaticgroupauth": true
"features": {
"graphqltransformer": {
"addmissingownerfields": true,
"improvepluralization": false,
"validatetypenamereservedwords": true,
"useexperimentalpipelinedtransformer": true,
"enableiterativegsiupdates": true,
"secondarykeyasgsi": true,
"skipoverridemutationinputtypes": true,
"transformerversion": 2,
"suppressschemamigrationprompt": true,
"securityenhancementnotification": false,
"showfieldauthnotification": false,
"usesubusernamefordefaultidentityclaim": true,
"usefieldnameforprimarykeyconnectionfield": false,
"enableautoindexquerynames": true,
"respectprimarykeyattributesonconnectionfield": true,
"shoulddeepmergedirectiveconfigdefaults": false,
"populateownerfieldforstaticgroupauth": true
},
"frontend-ios": {
"enablexcodeintegration": true
},
"auth": {
"enablecaseinsensitivity": true,
"useinclusiveterminology": true,
"breakcirculardependency": true,
"forcealiasattributes": false,
"useenabledmfas": true
},
"codegen": {
"useappsyncmodelgenplugin": true,
"usedocsgeneratorplugin": true,
"usetypesgeneratorplugin": true,
"cleangeneratedmodelsdirectory": true,
"retaincasestyle": true,
"addtimestampfields": true,
"handlelistnullabilitytransparently": true,
"emitauthprovider": true,
"generateindexrules": true,
"enabledartnullsafety": true,
"generatemodelsforlazyloadandcustomselectionset": false
},
"appsync": {
"generategraphqlpermissions": true
},
"latestregionsupport": {
"pinpoint": 1,
"translate": 1,
"transcribe": 1,
"rekognition": 1,
"textract": 1,
"comprehend": 1
},
"project": {
"overrides": true
}
},
"frontend-ios": {
"enablexcodeintegration": true
},
"auth": {
"enablecaseinsensitivity": true,
"useinclusiveterminology": true,
"breakcirculardependency": true,
"forcealiasattributes": false,
"useenabledmfas": true
},
"codegen": {
"useappsyncmodelgenplugin": true,
"usedocsgeneratorplugin": true,
"usetypesgeneratorplugin": true,
"cleangeneratedmodelsdirectory": true,
"retaincasestyle": true,
"addtimestampfields": true,
"handlelistnullabilitytransparently": true,
"emitauthprovider": true,
"generateindexrules": true,
"enabledartnullsafety": true,
"generatemodelsforlazyloadandcustomselectionset": false
},
"appsync": {
"generategraphqlpermissions": true
},
"latestregionsupport": {
"pinpoint": 1,
"translate": 1,
"transcribe": 1,
"rekognition": 1,
"textract": 1,
"comprehend": 1
},
"project": {
"overrides": true
"debug": {
"shareProjectConfig": false
}
},
"debug": {
"shareProjectConfig": false
}
}
7 changes: 0 additions & 7 deletions amplify/hooks/README.md

This file was deleted.

21 changes: 10 additions & 11 deletions amplify/team-provider-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,35 @@
"AmplifyAppId": "d3kjwk6i5to4jv"
},
"categories": {
"api": {
"unirent": {},
"accommodationApi": {},
"googleMapsApi": {},
"locationSearchApi": {}
},
"auth": {
"unirenta9aa32e0": {}
},
"function": {
"graphQlLambdaAuthorizerdd8bb286": {},
"accommodationFunction": {
"deploymentBucketName": "amplify-unirent-staging-195410-deployment",
"s3Key": "amplify-builds/accommodationFunction-774f714152775a613331-build.zip"
},
"recommendationHandler": {
"deploymentBucketName": "amplify-unirent-staging-195410-deployment",
"s3Key": "amplify-builds/recommendationHandler-32664c564d5a74436f6b-build.zip"
},
"geocodingHandler": {
"deploymentBucketName": "amplify-unirent-staging-195410-deployment",
"s3Key": "amplify-builds/geocodingHandler-75696a48457143557734-build.zip"
},
"locationSearchApi": {
"deploymentBucketName": "amplify-unirent-staging-195410-deployment",
"s3Key": "amplify-builds/locationSearchApi-4b5633544e4938785253-build.zip"
},
"recommendationHandler": {
"deploymentBucketName": "amplify-unirent-staging-195410-deployment",
"s3Key": "amplify-builds/recommendationHandler-32664c564d5a74436f6b-build.zip"
}
},
"storage": {
"s3unirentstorage820c3fa6": {}
},
"api": {
"accommodationApi": {},
"googleMapsApi": {},
"locationSearchApi": {},
"unirent": {}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/graphql/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ export type CreateUserInput = {
id?: string | null,
name: string,
status?: string | null,
userType: string | null,
userSavedAccommodationId?: string | null,
};

Expand All @@ -314,6 +315,7 @@ export type UpdateUserInput = {
id: string,
name?: string | null,
status?: string | null,
userType: string | null,
userSavedAccommodationId?: string | null,
};

Expand Down
Loading

0 comments on commit 94c1f55

Please sign in to comment.