Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
comment-hub
Commits
ec328596
Commit
ec328596
authored
1 year ago
by
Ruksana Semeir
Browse files
Options
Download
Patches
Plain Diff
Added the userRole field in comment Data
parent
bb5a673a
master
development
1 merge request
!1
Development
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
pom.xml
+1
-1
pom.xml
src/main/resources/application.properties
+6
-12
src/main/resources/application.properties
src/main/resources/payloadValidation/firstComment.json
+4
-1
src/main/resources/payloadValidation/firstComment.json
src/main/resources/payloadValidation/newComment.json
+4
-1
src/main/resources/payloadValidation/newComment.json
src/main/resources/payloadValidation/updateComment.json
+4
-1
src/main/resources/payloadValidation/updateComment.json
with
19 additions
and
16 deletions
+19
-16
pom.xml
+
1
−
1
View file @
ec328596
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
</configuration>
</configuration>
</plugin>
</plugin>
</plugins>
</plugins>
<finalName>
kubernetes
</finalName>
<finalName>
comment-hub
</finalName>
</build>
</build>
</project>
</project>
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
+
6
−
12
View file @
ec328596
server.port
=
8099
server.port
=
8099
management.endpoints.web.exposure.include
=
health
# PostgreSQL configuration
# PostgreSQL configuration
spring.datasource.url
=
jdbc:postgresql://localhost:543
2/commentdb
spring.datasource.url
=
jdbc:postgresql://localhost:543
3/frac_tool
spring.datasource.username
=
postgres
spring.datasource.username
=
postgres
spring.datasource.password
=
password
spring.datasource.password
=
yoursupersecret
spring.datasource.driver-class-name
=
org.postgresql.Driver
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect
=
org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.dialect
=
org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.format_sql
=
true
# Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa.show-sql
=
false
spring.jpa.hibernate.ddl-auto
=
update
spring.jpa.hibernate.ddl-auto
=
update
#------------------secretes------------#
#------------------secretes------------#
jwt.secret.key
=
comment-hub
jwt.secret.key
=
comment-hub
...
@@ -23,7 +17,7 @@ spring.redis.host=127.0.0.1
...
@@ -23,7 +17,7 @@ spring.redis.host=127.0.0.1
spring.redis.port
=
6379
spring.redis.port
=
6379
#spring.redis.password=KZ9u%Z&mki4&p35
#spring.redis.password=KZ9u%Z&mki4&p35
# 14 days in second 14 * 24 * 60 * 60
# 14 days in second 14 * 24 * 60 * 60
redis.ttl
=
12096
00
redis.ttl
=
864
00
#----------------------------Configure Logback pattern -----------------------
#----------------------------Configure Logback pattern -----------------------
logging.pattern.console
=
%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
logging.pattern.console
=
%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/payloadValidation/firstComment.json
+
4
−
1
View file @
ec328596
...
@@ -48,9 +48,12 @@
...
@@ -48,9 +48,12 @@
},
},
"userName"
:
{
"userName"
:
{
"type"
:
"string"
"type"
:
"string"
},
"userRole"
:
{
"type"
:
"string"
}
}
},
},
"required"
:
[
"userId"
,
"userPic"
],
"required"
:
[
"userId"
,
"userPic"
,
"userRole"
],
"additionalProperties"
:
false
"additionalProperties"
:
false
}
}
},
},
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/payloadValidation/newComment.json
+
4
−
1
View file @
ec328596
...
@@ -38,9 +38,12 @@
...
@@ -38,9 +38,12 @@
},
},
"userName"
:
{
"userName"
:
{
"type"
:
"string"
"type"
:
"string"
},
"userRole"
:
{
"type"
:
"string"
}
}
},
},
"required"
:
[
"userId"
,
"userPic"
],
"required"
:
[
"userId"
,
"userPic"
,
"userRole"
],
"additionalProperties"
:
false
"additionalProperties"
:
false
}
}
},
},
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/payloadValidation/updateComment.json
+
4
−
1
View file @
ec328596
...
@@ -35,9 +35,12 @@
...
@@ -35,9 +35,12 @@
},
},
"userName"
:
{
"userName"
:
{
"type"
:
"string"
"type"
:
"string"
},
"userRole"
:
{
"type"
:
"string"
}
}
},
},
"required"
:
[
"userId"
,
"userPic"
],
"required"
:
[
"userId"
,
"userPic"
,
"userRole"
],
"additionalProperties"
:
false
"additionalProperties"
:
false
},
},
"commentResolved"
:
{
"commentResolved"
:
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets