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

Fixed syncing between webapp & firealert. #189

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rupamkairi
Copy link
Contributor

Fixes #
Added filter for syncing important projects.

@

Copy link

vercel bot commented Jan 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
fire-alert ❌ Failed (Inspect) Jan 28, 2025 4:07am

@@ -51,8 +51,8 @@ export const fetchProjectsWithSitesForUser = async (bearer_token: string) => {

export const fetchAllProjectsWithSites = async () => {
const response = await fetch(
`${env.PLANET_API_URL}/app/projects?_scope=extended`,
);
`${env.PLANET_API_URL}/app/projects?_scope=extended&filter[purpose]=trees,conservation`,
Copy link
Collaborator

@norbertschuler norbertschuler Jan 28, 2025

Choose a reason for hiding this comment

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

For our planet-donations application we now use a filter with filter[purpose]=trees,restoration,conservation (using another _scope=map) at https://github.com/Plant-for-the-Planet-org/planet-donations/blob/develop/src/Layout/QueryParamContext.tsx#L241. Is is o.k. to not filter for restoration here?

Copy link
Member

Choose a reason for hiding this comment

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

@norbertschuler restoration and tree filter are same afaik.

@sagararyal sagararyal self-requested a review January 30, 2025 14:04
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.

3 participants