PartKeepr
PartKeepr copied to clipboard
Columns customization in Projects and Project Report fails
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
- Go to the Projects tab from the "Edit" menu.
- Select some project and click on Columns -> Customize
- Add a new field with any title and any field selected
- Apply changes and look, the Part column is no more active and usable
Refresh only can make that column active again.
Second bug
- Do the same thing and create a column with any name but with field from manufacturers or from distributors folder
- 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
Third bug The same behavior as in bug 2 may be observed in the Project Report tab
- Create some report
- Add a new column with the field from ProjectsParts, Part->Manufacturer or Part->Distributer folders
- 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
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
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?
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.
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
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.
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.
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.
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.