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

[🐛 Bug]: Applications crash when the filter component fails to match values. #277

Open
ashrafchowdury opened this issue Dec 20, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ashrafchowdury
Copy link

ashrafchowdury commented Dec 20, 2023

Report

When a user attempts to filter data and the filter component cannot find any matching values, the application crashes unexpectedly. This behaviour is consistent across all the pages that utilize the filter component.

Expected behavior

The application should display a message indicating that no matching values were found, or it should provide a message. It should not crash.

Steps to reproduce the problem

  1. Open the application and go to the filter component.
  2. Observe where the issue is rising.
  3. After finding the issue, add an error handler to that particular function or component.
  4. Raise a Popup error message to tell the user that the given value isn't available.

Another Way:

  1. Add a condition to filter component to check the values before applying it.

Logs (if applicable)

ashrafChowdury_pezzola_bbug_preview.mp4

Pezzo version

latest one

How do you use Pezzo?

Pezzo Cloud

@ashrafchowdury ashrafchowdury added the bug Something isn't working label Dec 20, 2023
@ashrafchowdury
Copy link
Author

I would like to work on this issue if everything sounds good.

@arielweinberger
Copy link
Member

Feel free to work on it @ashrafchowdury. Instead of an error message, it's better to populate empty values of display an empty state.

@ashrafchowdury
Copy link
Author

I got it.

It would be great if you could assign the issue to me so I can start working on it freely.

@ashrafchowdury
Copy link
Author

Hay @arielweinberger, I am encountering errors while attempting to run the application locally. I have carefully followed the local setup guide, but I am still unable to start the project.

Get this error after running npx nx serve console

image


Should I have to set any environment variables to run the project?

@zhangchengwen629
Copy link

我也遇到了PS D:\woker\pezzo\pezzo> npx nx serve console

NX No access token found

Nx will continue running, but nothing will be written or read from the remote cache.
Run details will also not be available in the Nx Cloud UI.

NX Running target serve for project console and 1 task it depends on:

————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

nx run pezzo:"graphql:generate"

[email protected] graphql:generate
nx graphql:generate server

NX No access token found

Nx will continue running, but nothing will be written or read from the remote cache.
Run details will also not be available in the Nx Cloud UI.

NX Running target graphql:generate for project server and 3 tasks it depends on:

nx run server:"prisma:generate" [existing outputs match the cache, left as is]

Environment variables loaded from .env
Prisma schema loaded from apps\server\prisma\schema.prisma

✔ Generated Prisma Client (5.1.1 | binary) to .\node_modules@prisma\client in 123ms

✔ Generated Prisma NestJS/GraphQL to .\apps\server\src@generated in 1.19s
You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client

import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

nx run server:"graphql:schema-generate"

'GITHUB_ACTIONS' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Warning: run-commands command "GITHUB_ACTIONS=true npx ts-node -P apps/server/tsconfig.app.json -r tsconfig-paths/register apps/server/scripts/generate-graphql-schema.ts" exited with non-zero status code

NX Running target graphql:generate for project server and 3 tasks it depends on failed

Failed tasks:

  • server:graphql:schema-generate

Hint: run the command with --verbose for more details.

NX Running target serve for project console and 1 task it depends on failed

Failed tasks:

  • pezzo:graphql:generate

Hint: run the command with --verbose for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants