Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit reports to team area reports #46

Merged
merged 4 commits into from
Mar 5, 2024
Merged

limit reports to team area reports #46

merged 4 commits into from
Mar 5, 2024

Conversation

edward3sc
Copy link
Collaborator

@edward3sc edward3sc commented Mar 5, 2024

Changes

@@ -14,6 +14,7 @@ services:
MICROSERVICE_TOKEN: ${microservice_token}
MONGODB_HOST: mongo
MONGODB_PORT: 27017
ENV: local
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this present in other instances as well, if not how does that affect the sentry logging

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only for the locally running version and doesn't define the containers for anything AWS hosted

@edward3sc edward3sc merged commit 9946c56 into staging Mar 5, 2024
edward3sc added a commit that referenced this pull request May 22, 2024
* areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* throw area error

* throw area error

* throw area error

* throw area error

* throw area error

* Squashed commit of the following:

commit 64d2870
Author: Burhanuddin Salim <[email protected]>
Date:   Tue May 30 16:54:11 2023 +0400

    Fix areateam relation delete expected single entity

commit 2d2f7d6
Author: Burhanuddin Salim <[email protected]>
Date:   Fri May 26 15:49:53 2023 +0100

    Fix missing import for tem area relation service

commit 469d3fd
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:56:42 2023 +0100

    Remove /query endpoint on are-team relations

commit 5f2bb92
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:42:42 2023 +0100

    Fix teams relations are not deleted on team delete

commit 91cdb66
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:17:16 2023 +0100

    Add admin query endpoint for debug on area-team relations

commit b8493a2
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 13:44:06 2023 +0100

    Fix /areaTeams/:areaId is returning null values

commit 7d858f7
Author: Burhanuddin Salim <[email protected]>
Date:   Thu Apr 27 10:58:16 2023 +0100

    Refactor area filter for wdpa and admin

* Squashed commit of the following:

commit 7e4d3e7
Author: Burhanuddin Salim <[email protected]>
Date:   Mon Jun 5 15:26:33 2023 +0400

    Add check for area size on area create

commit 64d2870
Author: Burhanuddin Salim <[email protected]>
Date:   Tue May 30 16:54:11 2023 +0400

    Fix areateam relation delete expected single entity

commit 2d2f7d6
Author: Burhanuddin Salim <[email protected]>
Date:   Fri May 26 15:49:53 2023 +0100

    Fix missing import for tem area relation service

commit 469d3fd
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:56:42 2023 +0100

    Remove /query endpoint on are-team relations

commit 5f2bb92
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:42:42 2023 +0100

    Fix teams relations are not deleted on team delete

commit 91cdb66
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:17:16 2023 +0100

    Add admin query endpoint for debug on area-team relations

commit b8493a2
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 13:44:06 2023 +0100

    Fix /areaTeams/:areaId is returning null values

commit 7d858f7
Author: Burhanuddin Salim <[email protected]>
Date:   Thu Apr 27 10:58:16 2023 +0100

    Refactor area filter for wdpa and admin

* Handle missing areas (#41)

* handle null area for team areas

* find all reports, teams (#43)

* fix missing await in /everyAnswer

* check team areas after promise resolved

* limit reports to team area reports (#46)

* limit reports to team area reports

* remove console log)

* tests

* auto commit: apply eslint fixes

---------

Co-authored-by: edward3sc <[email protected]>

* fix(answers): make sure only the correct answers show up (#48)

* fix answer permissions

* undo

* tests

* test

* remove console.log

---------

Co-authored-by: Burhanuddin Salim <[email protected]>
Co-authored-by: edward3sc <[email protected]>
edward3sc added a commit that referenced this pull request Jul 3, 2024
* areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* throw area error

* throw area error

* throw area error

* throw area error

* throw area error

* Squashed commit of the following:

commit 64d2870
Author: Burhanuddin Salim <[email protected]>
Date:   Tue May 30 16:54:11 2023 +0400

    Fix areateam relation delete expected single entity

commit 2d2f7d6
Author: Burhanuddin Salim <[email protected]>
Date:   Fri May 26 15:49:53 2023 +0100

    Fix missing import for tem area relation service

commit 469d3fd
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:56:42 2023 +0100

    Remove /query endpoint on are-team relations

commit 5f2bb92
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:42:42 2023 +0100

    Fix teams relations are not deleted on team delete

commit 91cdb66
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:17:16 2023 +0100

    Add admin query endpoint for debug on area-team relations

commit b8493a2
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 13:44:06 2023 +0100

    Fix /areaTeams/:areaId is returning null values

commit 7d858f7
Author: Burhanuddin Salim <[email protected]>
Date:   Thu Apr 27 10:58:16 2023 +0100

    Refactor area filter for wdpa and admin

* Squashed commit of the following:

commit 7e4d3e7
Author: Burhanuddin Salim <[email protected]>
Date:   Mon Jun 5 15:26:33 2023 +0400

    Add check for area size on area create

commit 64d2870
Author: Burhanuddin Salim <[email protected]>
Date:   Tue May 30 16:54:11 2023 +0400

    Fix areateam relation delete expected single entity

commit 2d2f7d6
Author: Burhanuddin Salim <[email protected]>
Date:   Fri May 26 15:49:53 2023 +0100

    Fix missing import for tem area relation service

commit 469d3fd
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:56:42 2023 +0100

    Remove /query endpoint on are-team relations

commit 5f2bb92
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:42:42 2023 +0100

    Fix teams relations are not deleted on team delete

commit 91cdb66
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:17:16 2023 +0100

    Add admin query endpoint for debug on area-team relations

commit b8493a2
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 13:44:06 2023 +0100

    Fix /areaTeams/:areaId is returning null values

commit 7d858f7
Author: Burhanuddin Salim <[email protected]>
Date:   Thu Apr 27 10:58:16 2023 +0100

    Refactor area filter for wdpa and admin

* Handle missing areas (#41)

* handle null area for team areas

* find all reports, teams (#43)

* fix missing await in /everyAnswer

* check team areas after promise resolved

* limit reports to team area reports (#46)

* limit reports to team area reports

* remove console log)

* tests

* auto commit: apply eslint fixes

---------

Co-authored-by: edward3sc <[email protected]>

* fix(answers): make sure only the correct answers show up (#48)

* fix answer permissions

* undo

* tests

* test

* remove console.log

* Dev (#53)

* Refactor area filter for wdpa and admin

* Fix /areaTeams/:areaId is returning null values

* Add admin query endpoint for debug on area-team relations

* Fix teams relations are not deleted on team delete

* Remove /query endpoint on are-team relations

* Fix missing import for tem area relation service

* Fix areateam relation delete expected single entity

* Add check for area size on area create

* feat(answers): make private files

* feat(answers): save file isPublic to db

* feat(assignments): make image uploads public

* feat(answers): generate presigned url

* feat(answers): fix tests

* feat(answers): fix test

* feat(answers): generate presigned urls and update answer response

* feat(answers): add urls to return

* feat(teams): fix return type

* feat(answers): fix tests

* feat(answers): remove packages

* feat(packages): install mongodb

* feat(assignments): fix for s3

* feat(answers): refactor

* feat(answers): refactor

* feat(answers): refactor

* Feat/report file access (#49)

* feat(answers): make private files

* feat(answers): save file isPublic to db

* feat(assignments): make image uploads public

* feat(answers): generate presigned url

* feat(answers): fix tests

* feat(answers): fix test

* feat(answers): generate presigned urls and update answer response

* feat(answers): add urls to return

* feat(teams): fix return type

* feat(answers): fix tests

* feat(answers): remove packages

* feat(packages): install mongodb

* feat(assignments): fix for s3

* feat(answers): refactor

* feat(answers): refactor

* feat(answers): refactor

* feat(s3): fix presigned url

* package

* tests

* tests

* s3 service

* s3 service

* s3 service

* s3 service

* s3 service

* feat(answer): update file permissions endpoint (#51)

* feat(answer): update file permissions

* add tests

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* feat(answers): return original url

* docs

* debug

* stats

* throw 403 on access denied

* stats

* tests

* Feat/statistics (#52)

* stats

* stats

* tests

* debug

* debug

* debug

* debug

* redis

* missing service

* parse response

* results

* data:

* tests

* tests

* tests

---------

Co-authored-by: Burhanuddin Salim <[email protected]>

* docs

* docs

* docs

* error

* auto commit: apply eslint fixes

* refactor

* auto commit: apply eslint fixes

* team stats

* auto commit: apply eslint fixes

* exports

* auto commit: apply eslint fixes

* export

* auto commit: apply eslint fixes

* exports

* exports

* auto commit: apply eslint fixes

* exports

* a

* auto commit: apply eslint fixes

* possible fix

* fix

* auto commit: apply eslint fixes

* tests

* auto commit: apply eslint fixes

* auto commit: apply eslint fixes

* tidy

* auto commit: apply eslint fixes

---------

Co-authored-by: Burhanuddin Salim <[email protected]>
Co-authored-by: edward3sc <[email protected]>
edward3sc added a commit that referenced this pull request Sep 2, 2024
* areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* team areas

* throw area error

* throw area error

* throw area error

* throw area error

* throw area error

* Squashed commit of the following:

commit 64d2870
Author: Burhanuddin Salim <[email protected]>
Date:   Tue May 30 16:54:11 2023 +0400

    Fix areateam relation delete expected single entity

commit 2d2f7d6
Author: Burhanuddin Salim <[email protected]>
Date:   Fri May 26 15:49:53 2023 +0100

    Fix missing import for tem area relation service

commit 469d3fd
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:56:42 2023 +0100

    Remove /query endpoint on are-team relations

commit 5f2bb92
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:42:42 2023 +0100

    Fix teams relations are not deleted on team delete

commit 91cdb66
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:17:16 2023 +0100

    Add admin query endpoint for debug on area-team relations

commit b8493a2
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 13:44:06 2023 +0100

    Fix /areaTeams/:areaId is returning null values

commit 7d858f7
Author: Burhanuddin Salim <[email protected]>
Date:   Thu Apr 27 10:58:16 2023 +0100

    Refactor area filter for wdpa and admin

* Squashed commit of the following:

commit 7e4d3e7
Author: Burhanuddin Salim <[email protected]>
Date:   Mon Jun 5 15:26:33 2023 +0400

    Add check for area size on area create

commit 64d2870
Author: Burhanuddin Salim <[email protected]>
Date:   Tue May 30 16:54:11 2023 +0400

    Fix areateam relation delete expected single entity

commit 2d2f7d6
Author: Burhanuddin Salim <[email protected]>
Date:   Fri May 26 15:49:53 2023 +0100

    Fix missing import for tem area relation service

commit 469d3fd
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:56:42 2023 +0100

    Remove /query endpoint on are-team relations

commit 5f2bb92
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:42:42 2023 +0100

    Fix teams relations are not deleted on team delete

commit 91cdb66
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 14:17:16 2023 +0100

    Add admin query endpoint for debug on area-team relations

commit b8493a2
Author: Burhanuddin Salim <[email protected]>
Date:   Mon May 22 13:44:06 2023 +0100

    Fix /areaTeams/:areaId is returning null values

commit 7d858f7
Author: Burhanuddin Salim <[email protected]>
Date:   Thu Apr 27 10:58:16 2023 +0100

    Refactor area filter for wdpa and admin

* Handle missing areas (#41)

* handle null area for team areas

* find all reports, teams (#43)

* fix missing await in /everyAnswer

* check team areas after promise resolved

* limit reports to team area reports (#46)

* limit reports to team area reports

* remove console log)

* tests

* auto commit: apply eslint fixes

---------

Co-authored-by: edward3sc <[email protected]>

* fix(answers): make sure only the correct answers show up (#48)

* fix answer permissions

* undo

* tests

* test

* remove console.log

* Dev (#53)

* Refactor area filter for wdpa and admin

* Fix /areaTeams/:areaId is returning null values

* Add admin query endpoint for debug on area-team relations

* Fix teams relations are not deleted on team delete

* Remove /query endpoint on are-team relations

* Fix missing import for tem area relation service

* Fix areateam relation delete expected single entity

* Add check for area size on area create

* feat(answers): make private files

* feat(answers): save file isPublic to db

* feat(assignments): make image uploads public

* feat(answers): generate presigned url

* feat(answers): fix tests

* feat(answers): fix test

* feat(answers): generate presigned urls and update answer response

* feat(answers): add urls to return

* feat(teams): fix return type

* feat(answers): fix tests

* feat(answers): remove packages

* feat(packages): install mongodb

* feat(assignments): fix for s3

* feat(answers): refactor

* feat(answers): refactor

* feat(answers): refactor

* Feat/report file access (#49)

* feat(answers): make private files

* feat(answers): save file isPublic to db

* feat(assignments): make image uploads public

* feat(answers): generate presigned url

* feat(answers): fix tests

* feat(answers): fix test

* feat(answers): generate presigned urls and update answer response

* feat(answers): add urls to return

* feat(teams): fix return type

* feat(answers): fix tests

* feat(answers): remove packages

* feat(packages): install mongodb

* feat(assignments): fix for s3

* feat(answers): refactor

* feat(answers): refactor

* feat(answers): refactor

* feat(s3): fix presigned url

* package

* tests

* tests

* s3 service

* s3 service

* s3 service

* s3 service

* s3 service

* feat(answer): update file permissions endpoint (#51)

* feat(answer): update file permissions

* add tests

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* feat(answers): return original url

* docs

* debug

* stats

* throw 403 on access denied

* stats

* tests

* Feat/statistics (#52)

* stats

* stats

* tests

* debug

* debug

* debug

* debug

* redis

* missing service

* parse response

* results

* data:

* tests

* tests

* tests

---------

Co-authored-by: Burhanuddin Salim <[email protected]>

* docs

* docs

* docs

* error

* auto commit: apply eslint fixes

* refactor

* auto commit: apply eslint fixes

* team stats

* auto commit: apply eslint fixes

* exports

* auto commit: apply eslint fixes

* export

* auto commit: apply eslint fixes

* exports

* exports

* auto commit: apply eslint fixes

* exports

* a

* auto commit: apply eslint fixes

* possible fix

* fix

* auto commit: apply eslint fixes

* tests

* auto commit: apply eslint fixes

* auto commit: apply eslint fixes

* tidy

* auto commit: apply eslint fixes

* auto commit: apply eslint fixes

* debug

* debug

* debug

* docker compose

* debug

* debug

* auto commit: apply eslint fixes

* debug

* debug

* auto commit: apply eslint fixes

* debug

* auto commit: apply eslint fixes

* debug

* debug

* auto commit: apply eslint fixes

* debug

* remove comments

---------

Co-authored-by: Burhanuddin Salim <[email protected]>
Co-authored-by: edward3sc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants