-
Notifications
You must be signed in to change notification settings - Fork 48
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
Expense category options not displaying in drop down menu when entering expense (repeat bug) #2151
Comments
We only bring down the first 20 expense categories, the rest are searchable (if nothing local, then we perform the search over the api) |
I only have 5-6 categories. This has come up before. ...not a question... |
Cannot recreate. |
I have a prod and test instance, it occurs in both. I'll make sure I'm on latest again and screenshot later if it still present. |
One more question...you said only 20 categories are shown in this menu by default. Is it possible this setting is stuck at 1 in both my instances? Is this something I can look for in the DB or is this hard coded? |
check your browser console and inspect what the query parameter looks like for /api/v1/expense_categories. if this is for an existing expense with a category already assigned, inspect what the payload looks like there. |
This was noticed upon entering new expenses but does occur on existing (only one category shown and no "list"). I'll be honest I found references in the console to /api/v1/expense_categories but I have no idea what I'm looking for nor would I understand if something is off. -Sorry I have next to no programing knowledge. I think I am in the area but don't know what would be helpful to report back. I think this is where I was kind of left just typing the categories in previously across some versions and then all the sudden after some update the expense category list was working again. Thank you |
Can you provide the screenshot from the headers tab as well please. we'd need to see the full URI |
@fanvyr Hey, I just checked the behavior of the Expense Selector that you're having issue with. We have some tests made for this selector, and for testing certain edge cases, we used the Please let me know if I can help you with anything else. |
Hey, thanks for the Feedback. @turbo124
@Civolilah Thanks Guys EDIT: |
Just wanted to pop in here and say thank you to those who have added to this issue. It's nice to see some traction on an issue that was dismissed and I have been just dealing with since reporting the second time. I am following the conversation and will try to provide additional information if possible/needed. |
@fanvyr Thanks for helping us debug the issue you're experiencing. I've deeply checked the logic and found that we never set Helpful screenshot: If there are only 4 products in the dropdown but you have more than 4 "Active" products in your Products table, we're certain that you just need to delete or set this .env variable to "false". Just please make sure you're configuring the .env file in the React (frontend) project, not in the PHP (backend). To ensure you're changing the right file, verify that there's a Please let me know if you experience any additional issues. |
@Civolilah Can you give me a hint in which folder to look? Here's the Here's the The public folder is empty. |
I've tested this locally, i think the URI is missing some additional data, my request looks something like this:
note the |
@turbo124 |
@fanvyr sorry, i see this now. Appears to only be impacting Docker installations @Civolilah The network tab shows some very odd network calls to the /expense_categories route. First a call for ?per_page=100, followed by per_page=1 @Civolilah it also looks like our default .env.example file has
@beganovich is there any reason we bake this default into the .env.example? |
Well, we already figured out that the I've also created a ticket in the cloudron forum. Sadly very limited responses there. |
@fanvyr the issue is not on your side, i believe the pipeline we use to produce the build has it set to true by default. |
@turbo124 not that I know about. We'll switch to VITE_IS_TEST=false by default & update the CI. |
Perfect. Can you let me know when its done? Thank you so much |
Setup
Interface
Describe the bug
This is a repeat bug although I can not find the previous post I submitted here or on the forum:
Expense Category drop down is not displaying the full list of options. I am able to start typing the name of the other options and then I can select the corresponding item.
Steps To Reproduce
Create new expense having multiple expense categories, click drop down option, only one item is displayed.
Expected Behavior
All expense categories displayed in drop down menu.
Additional context
I can't find my previous report of this but seemed like a quick fix. I can reproduce this in two different local instances, also cleared browser cache/cookies same result.
Screenshots
Can add if requested.
The text was updated successfully, but these errors were encountered: