This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial implementation of detect-changes module (#17)
to subscribe database _changes feed, detect those affecting a report and triggering events see #16 --------- Co-authored-by: Tom Winter <[email protected]>
- Loading branch information
1 parent
055ea69
commit 94f4d8b
Showing
29 changed files
with
1,011 additions
and
307 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
SENTRY_DSN= | ||
PORT= | ||
DATABASE_URL=http://127.0.0.1:5984 | ||
DATABASE_ADMIN=admin | ||
DATABASE_USER=admin | ||
DATABASE_PASSWORD=admin | ||
QUERY_URL=http://127.0.0.1:4984 | ||
SCHEMA_CONFIG_ID=_design/sqlite:config | ||
REPORT_DATABASE_URL=http://127.0.0.1:5984 | ||
REPORT_DATABASE_NAME=app |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Reference } from './reference'; | ||
import { ReportCalculation } from './report-calculation'; | ||
|
||
/** | ||
* Used as core that a report's calculated results have changed, due to updates in the underlying database. | ||
*/ | ||
export interface ReportDataChangeEvent { | ||
/** The report for which data has changed */ | ||
report: Reference; | ||
|
||
/** The calculation containing the latest data after the change, ready to be fetched */ | ||
calculation: ReportCalculation; | ||
} |
Oops, something went wrong.