Skip to content
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

Count of owned assets in user listing page is zero, even if they own assets #64

Conversation

create-issue-branch[bot]
Copy link
Contributor

closes #63

@nhoening nhoening marked this pull request as ready for review March 19, 2021 11:01
@nhoening nhoening requested a review from Flix6x March 19, 2021 11:01
@@ -67,7 +67,7 @@ <h2> Account overview for {{ user.username }} </h2>
Assets owned
</td>
<td>
<a href="/assets/owned_by/{{ user.id }}">{{ user.assets | length }}</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So why did this not work?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our UI calls our API, but the API is not returning the assets of the user like SQLAlchemy automatically does (with a second query). Our API returns a JSON structure, and whoever wants the assets can make a second call.

@nhoening nhoening merged commit 679ea53 into main Mar 21, 2021
@Flix6x Flix6x deleted the issue-63-Count_of_owned_assets_in_user_listing_page_is_zero_even_if_they_own_assets branch March 1, 2022 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Count of owned assets in user page is zero, even if they own assets
2 participants