-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(reviewrequestservice): add initial impl to copute url * chore(errors): add many errors * feat(types): add types * refactor(deployment): chaneg string type to permalink * feat(pageservice): add new pageservice abstration for raw js wrappers * feat(json): add new safeJsonParse util * refactor(reviewrequestservice): refactor to use new page service * refactor(sitesservice): refactor to use new page service * refactor(review): refactor for neverthrow api * chore(server): init page service * chore(pageservice): add comment * fix(reviewrequestservice): add in await * fix(collaboratorsservice): add in unwrap * chore(review.ts): removed vapt fixes * chore(services/types): renamed variables and methods for clarity * chore(errors): removed unneeded properties * fix(server): u9pdate after rebase * fix(review): update after rebase * fix(rebase fixes): add cast cos the `permalink` property is guaranteed but it's opaque atm * chore(server): add code for init of pageservice * chore(rr service): specify return types * fix(notif handler): update to fit new api * test(app): updated specs to fit with new API (#587) * fix(sites.spec): update imports * test(sitesservice): update types * test(reviewrequestservice.spec): update spce * test(collaboratorsservice): fixed tests * chore(databaseerror): add new error * fix(sitesservice): fixed regression in code * test(sitesservice.spec): fixed tests * chore(sitesservice): remove extra console log * chore(sites/user spec): add sync to prevent db clash * chore(databaseerror): removed extra properties * chore(constants): add new constant for homepage name * fix(pageservice): fixed bug allowing empty collections * chore(constants): add new constant for contact-us * refactor(pages): rename property * test(pageservice.spec): add tests * chore(constants): rename homepage constants for consistency * chore(pageservice): remove redundant code * chore(pageservice.spec,): remove extra async * chore(pageservice.spec): standardise imports \ * refactor(pageservice): update parsecolletionpage * test(pageservice.spec): update tests for new error mesasge * fix(pageservice.spec): removed extra newline * test(integration): fixed reviews integration tests * test(review): updated spec for new api * tests(notifs + page): fixed failing tests * test(review): fix for dev changes
- Loading branch information
1 parent
f919e0e
commit 62edb69
Showing
41 changed files
with
2,635 additions
and
697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from "./constants" | ||
export * from "./pages" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const HOMEPAGE_FILENAME = "index.md" | ||
|
||
export const CONTACT_US_FILENAME = "contact-us.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { BaseIsomerError } from "./BaseError" | ||
|
||
export default class DatabaseError extends BaseIsomerError { | ||
constructor(message = "Unable to retrieve data from database") { | ||
super(500, message) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { BaseIsomerError } from "./BaseError" | ||
|
||
export default class EmptyStringError extends BaseIsomerError { | ||
constructor( | ||
message = "An empty string was provided for a method that requires a non-empty string" | ||
) { | ||
super(500, message) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { NotFoundError } from "./NotFoundError" | ||
|
||
export default class MissingResourceRoomError extends NotFoundError { | ||
constructor(message = "No resource room exists for the site") { | ||
super(message) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { NotFoundError } from "./NotFoundError" | ||
|
||
export default class MissingSiteError extends NotFoundError { | ||
constructor(message = "The site could not be found in Isomer") { | ||
super(message) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { NotFoundError } from "./NotFoundError" | ||
|
||
export default class MissingUserEmailError extends NotFoundError { | ||
constructor(message = "No email exists for the specified user!") { | ||
super(message) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { NotFoundError } from "./NotFoundError" | ||
|
||
export default class MissingUserError extends NotFoundError { | ||
constructor(message = "The user could not be found in Isomer") { | ||
super(message) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.