Skip to content

Conversation

@sbekkerm
Copy link
Contributor

@sbekkerm sbekkerm commented May 7, 2025

No description provided.

@sbekkerm sbekkerm marked this pull request as ready for review May 7, 2025 12:02
@EmilienM EmilienM requested a review from lpiwowar May 7, 2025 12:40
Copy link
Contributor

@lpiwowar lpiwowar left a comment

Choose a reason for hiding this comment

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

Overall, looks good to me!:) 👍 Just three small things (one blocking) that need to be polished.

"clientName": "cli",
"expression": query,
"q": "*",
"rows": max_results,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there no limit on how many rows you can fetch? Do you need to fetch them in batches?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the API doesn't limit us. We can fetch all records at once

Copy link
Contributor

Choose a reason for hiding this comment

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

I vaguely remember seeing some issues, but I see only 6823 solutions for https://access.redhat.com/search/?q=*&p=1&rows=10&documentKind=Solution&sort=lastModifiedDate+desc&product=Red+Hat+OpenStack+Platform, so we should be fine.

"topic": raw_result.get('publishedTitle', ''),
"issue": ''.join(raw_result.get('issue', '')),
"diagnosticsteps": ''.join(raw_result.get('solution_diagnosticsteps', 'N/A')),
"text": ''.join(raw_result.get('solution_resolution', 'N/A')),
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't there root_cause and environment fields as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I’m not sure how much insight it will give us, since only half of the solutions include this field, but it’s definitely room for experimentation

Copy link
Contributor

@EmilienM EmilienM left a comment

Choose a reason for hiding this comment

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

LGTM 👍
thanks for this work

@EmilienM EmilienM requested a review from lpiwowar May 8, 2025 14:38
@EmilienM EmilienM dismissed lpiwowar’s stale review May 8, 2025 14:39

I think Lukas's comments were addressed, we can iterate afterwards.

@EmilienM EmilienM merged commit 63d26c3 into main May 8, 2025
3 checks passed
@EmilienM EmilienM deleted the kb_solutions branch May 8, 2025 14:39
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.

5 participants