pezzolabs / pezzo

๐Ÿ•น๏ธ Open-source, developer-first LLMOps platform designed to streamline prompt design, version management, instant delivery, collaboration, troubleshooting, observability and more.
https://pezzo.ai
Apache License 2.0
1.94k stars 177 forks source link

[๐Ÿ› Bug]: Applications crash when the filter component fails to match values. #277

Open ashrafchowdury opened 6 months ago

ashrafchowdury commented 6 months ago

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)

https://github.com/pezzolabs/pezzo/assets/87828904/3f42bda7-7eda-46d8-9d68-5457ef6888fd

Pezzo version

latest one

How do you use Pezzo?

Pezzo Cloud

ashrafchowdury commented 6 months ago

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

arielweinberger commented 6 months ago

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 commented 6 months ago

I got it.

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

ashrafchowdury commented 6 months ago

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 commented 4 months ago

ๆˆ‘ไนŸ้‡ๅˆฐไบ†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"

pezzo@0.8.0 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' ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝฺฒ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝโฒฟ๏ฟฝ๏ฟฝ๏ฟฝ๎ฃฌาฒ๏ฟฝ๏ฟฝ๏ฟฝวฟ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝะตฤณ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝฤผ๏ฟฝ๏ฟฝ๏ฟฝ 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: