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

API Gallery - heavily truncated API description #2260

Closed
ZarTrox opened this issue Jul 26, 2023 · 5 comments · Fixed by #2386
Closed

API Gallery - heavily truncated API description #2260

ZarTrox opened this issue Jul 26, 2023 · 5 comments · Fixed by #2386

Comments

@ZarTrox
Copy link

ZarTrox commented Jul 26, 2023

Bug description

For our API descriptions we noticed that some are heavily truncated to just a few words.
image

After testing around we noticed that for a certain range of characters the truncation is just not working right:

If the length of the API description is greater than 250 characters the overview description on the API Overview page is truncated very badly.

It seems that the truncation length scales with the length of the description:
A long text has a longer truncation than a short text
Therefore, short texts that are truncated have a very short truncated description -> see the 3 word description in the screenshot
A description of e.g. 600 characters is truncated to 363 characters while a description of 363 characters is truncated to 128 characters.

I tested various string lengths and these are the results:

  • 0-250: Good display of the description
  • 251 - ~350: Very short description (the 350 is only as a reference as it contains atleast some words that can be put into context)
  • 350 - ...: Better with the truncation scaling with the description length

Similar like #2259 this causes the user more mental load to understand our offers by having to click though all APIs without a useful overview.

Reproduction steps

  1. Add different description lengths to the OpenAPI Specification
  2. Compare results for different lengths
  3. See the behavior

Expected behavior

  • Description and rules regarding the truncation (especially the scaling of the description length and the truncation)
  • A min length for truncated descriptions , or
  • Raising the character limit before truncating the text

Is your portal managed or self-hosted?

Managed

@ghost
Copy link

ghost commented Jul 26, 2023

@ZarTrox, thank you for opening this issue. We will triage it within the next few business days.

@ZarTrox ZarTrox changed the title API Details - heavily truncated API description API Gallery - heavily truncated API description Jul 26, 2023
@ZarTrox
Copy link
Author

ZarTrox commented Jul 26, 2023

Known Affected Widgets: List of APIs

@malincrist
Copy link
Member

Hello @ZarTrox , thanks for reaching out. It appears that the issue you are describing has been fixed by #2140.
However, please note that it hasn't been deployed for managed portals yet (ETA is end of August).

@Elivoll
Copy link

Elivoll commented Oct 5, 2023

Hello,

You mentioned the ETA for this issue is end of August., however it is not fixed yet.
I wanted to bring to your attention the urgency of the situation regarding the bug in the code. Could you please check when this issue will be resolved, when the new code will be released, and when it will be rolled out?

Thank you!

@elisabethvolkinshtein
Copy link

Hello,
I would like to bring to your attention that we urgently need a solution for this issue.
This issue is still not fixed.

Thank you!

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 a pull request may close this issue.

4 participants