Skip to content

Commit

Permalink
The bug, welcome notification created from the demo changelog cannot …
Browse files Browse the repository at this point in the history
…be deleted, was fixed. (#106)
  • Loading branch information
dgswan authored Jul 25, 2019
1 parent 5aaa5fd commit 7439b9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public ResponseEntity<Void> delete(@PathVariable("notificationId") String notifi
if (notificationQueryService.getNotification(notificationId).isEmpty()) {
final String[] searchParamsMap = {"id", notificationId};
throw NoSuchResourceException.builder()
.model(Model.USER)
.model(Model.NOTIFICATION)
.searchParamsMap(searchParamsMap)
.build();
}
Expand Down
18 changes: 9 additions & 9 deletions src/main/resources/db/liquigraph/changelog-demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
<query>CREATE (:User {id: randomUUID(), firstName: 'Second user', lastName: 'Second user\'s surname', userName: 'us2', email: '[email protected]', referenceId: randomUUID()})</query>
<query>CREATE (:User {id: randomUUID(), firstName: 'Third user', lastName: 'Third user\'s surname', userName: 'us3', email: '[email protected]', referenceId: randomUUID()})</query>

<query>MATCH (u:User {userName: 'dmle'}) CREATE (:UserWelcomeNotification:WelcomeNotification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'sviv'}) CREATE (:UserWelcomeNotification:WelcomeNotification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'frwt'}) CREATE (:UserWelcomeNotification:WelcomeNotification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'rju'}) CREATE (:UserWelcomeNotification:WelcomeNotification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'phin'}) CREATE (:UserWelcomeNotification:WelcomeNotification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'frn'}) CREATE (:UserWelcomeNotification:WelcomeNotification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'us1'}) CREATE (:UserWelcomeNotification:WelcomeNotification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'us2'}) CREATE (:UserWelcomeNotification:WelcomeNotification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'us3'}) CREATE (:UserWelcomeNotification:WelcomeNotification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'dmle'}) CREATE (:UserWelcomeNotification:Notification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'sviv'}) CREATE (:UserWelcomeNotification:Notification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'frwt'}) CREATE (:UserWelcomeNotification:Notification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'rju'}) CREATE (:UserWelcomeNotification:Notification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'phin'}) CREATE (:UserWelcomeNotification:Notification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'frn'}) CREATE (:UserWelcomeNotification:Notification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'us1'}) CREATE (:UserWelcomeNotification:Notification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'us2'}) CREATE (:UserWelcomeNotification:Notification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>
<query>MATCH (u:User {userName: 'us3'}) CREATE (:UserWelcomeNotification:Notification {id: randomUUID(), creationDatetime: toString(localdatetime())})-[:RECIPIENT]->(u)</query>

<query>MATCH (u:User {userName: 'dmle'}), (s:Skill {name: 'Spring Boot'}) CREATE (u)-[:RELATED_TO {currentLevel: 1, desiredLevel: 2, priority: 2}]->(s)</query>
<query>MATCH (u:User {userName: 'dmle'}), (s:Skill {name: 'Java'}) CREATE (u)-[:RELATED_TO {currentLevel: 2, desiredLevel: 3, priority: 1}]->(s)</query>
Expand Down

0 comments on commit 7439b9c

Please sign in to comment.