filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
18.09k stars 2.83k forks source link

Blank row bug on relationship column #9217

Closed agunbuhori closed 9 months ago

agunbuhori commented 11 months ago

Package

filament/filament

Package Version

v3.0

Laravel Version

v10.10

Livewire Version

No response

PHP Version

8.1

Problem description

I display a relationship on the student_bills table, as follows:

TextColumn::make('student.nis_name')
                     ->searchable()

Each student_bill has a student_id, but when the number of rows is large, there are several rows that are blank and I don't know the cause. I tested it by replacing it with another student, this worked and when the value was returned to the previous student, the row came back blank. I have also tried changing some of the values of students and it still doesn't work. My code seems well

Schema::create('student_bills', function (Blueprint $table) {
            $table->uuid('id')
                ->primary();
            $table->string('title');
            $table->enum('type', BillType::toArray());
            $table->foreignUuid('cohort_bill_id')
                ->nullable()
                ->constrained();
            $table->foreignUuid('student_id')
                ->constrained();
            $table->unsignedInteger('bill');
            $table->unsignedSmallInteger('unique_code')
                ->default(0);
            $table->boolean('paid')
                ->default(false);
            $table->date('due_date');
            $table->timestamps();
});

buggy

It's shown on edit mode but blank on row??

Screenshot 2023-10-20 at 19 13 03

Expected behavior

The nis_name should appear because there are no errors in my database structure.

Steps to reproduce

I don't know the cause of this bug.

Reproduction repository

https://github.com/agunbuhori/simahad

Relevant log output

No response

github-actions[bot] commented 11 months ago

Hey @agunbuhori! We're sorry to hear that you've hit this issue. 💛

However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?

We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.

github-actions[bot] commented 11 months ago

Thank you for providing reproduction steps! Reopening the issue now.

sumardi commented 11 months ago

Please provide steps to reproduce. Write up detailed steps that can consistently (at least 50% of the time) replicate the issue.

danharrin commented 9 months ago

I cannot reproduce this because you have not provided an adequate seeder to do so.