PartKeepr icon indicating copy to clipboard operation
PartKeepr copied to clipboard

Columns customization in Projects and Project Report fails

Open Plinsboorg opened this issue 4 years ago • 3 comments

Bug description

When I'm trying to customize columns in the Projects tab and in Project Report I'm facing several issues. Sometimes data in columns become invisible and return back witch selecting default column layout. Sometimes the whole layout crashes and I need to refresh the page to make columns in the table visible again.

Steps to reproduce

First bug

  1. Go to the Projects tab from the "Edit" menu.
  2. Select some project and click on Columns -> Customize image
  3. Add a new field with any title and any field selected image
  4. Apply changes and look, the Part column is no more active and usable image Refresh only can make that column active again.

Second bug

  1. Do the same thing and create a column with any name but with field from manufacturers or from distributors folder image
  2. If you apply that, you will not see the content of that column. But if you will move that column UP (or left) you will see that any data to the right of that column will also disappear like the overage column in my picture image

Third bug The same behavior as in bug 2 may be observed in the Project Report tab

  1. Create some report image
  2. Add a new column with the field from ProjectsParts, Part->Manufacturer or Part->Distributer folders image
  3. You will see nothing in that field and as you will move this column UP (or left) you will see that all columns content to the right of this column will disappear image

This issue probably related by #1108 Pull Request. But I've tried proposed in pull request edits in my own system and nothing changed. The problem is still there. Please check this issue on demo system and check if this pull request really can fix it. Maybe I've done something wrong with uploading this request to my system.

It's important because technically with this bug I'm unable to create any custom project report. It's needed for me.

  • PartKeepr Version: 1.4.0
  • Operating System: amazon-linux 2018.03
  • Web Server: Apache/2.4.41 (Amazon)
  • PHP Version: 7.1.33
  • Reproducible on the demo system: Yes

Plinsboorg avatar Jul 15 '20 16:07 Plinsboorg

When you tried to use the changes from the git repository, did you run the corresponding commands to build the required files from the source files?

christianlupus avatar Jul 20 '20 14:07 christianlupus

After the correct installation of pull request #948 bugs with displaying columns information was fixed. More information is inside the pull request. The first bug with the deactivation of "part" column after any edits in columns is steel there. Even after restoring columns preset back to default "Part" column remains not active and only page refresh can fix the problem.

Plinsboorg avatar Aug 05 '20 06:08 Plinsboorg

After the latest merge of pull request #948 to main, I reinstalled and updated PartKeepr in my server and I can confirm that only the first bug is presented now. Perfect looking image

Also, I discovered two more bugs related to this issue. Let's continue numeration Bug 4 I need to have a stock level in the project view. The only matching field that I found is part.StockLevels.StockLevel but I see nothing in the column using this field. image In the project report tab column Available working just fine and showing me the correct Stock values (not to mention that negative values are possible #1113). But I discovered that Available column using field part.StockLevel. image I can not find this field in the list. Hense I can not paste the same field in the Project tab.

Bug 5 Ok, I tried to generate my standard BOM view in the Project Report tab. And I found that I'm unable to fill the Designator field correctly. image

I wanted to see designators stored in the remarks field of the project. But again I can not find the correct field to show Designators correctly. Also, I can not find the field remarks used by default in the project report remarks column.

I'm not a developer hence any hints or bug fixes are greatly appreciated.

Plinsboorg avatar Aug 06 '20 06:08 Plinsboorg