Skip to content

story/HOP-68#55

Open
Girik1105 wants to merge 6 commits into
developfrom
story/HOP-68
Open

story/HOP-68#55
Girik1105 wants to merge 6 commits into
developfrom
story/HOP-68

Conversation

@Girik1105
Copy link
Copy Markdown
Contributor

Guidelines for Pull Requests

If you haven't yet read our code review guidelines, please do so, You can find them here.

Please confirm the following by adding an x for each item (turn [ ] into [x]).

  • I have removed all code style changes that are not necessary (e.g. changing blanks across the whole file that don’t need to be changed, adding empty lines in parts other than your own code)
  • I am not making any changes to files that don’t have any effect (e.g. imports added that don’t need to be added)
  • I do not have any sysout statements in my code or commented out code that isn’t needed anymore
  • I am not reformatting any files in the wrong format or without cause.
  • I am not changing file encoding or line endings to something else than UTF-8, LF
  • My pull request does not show an insane amount of files being changed although my ticket only requires a few files being changed
  • I have added Javadoc/documentation where appropriate
  • I have added test cases where appropriate
  • I have explained any part of my code/implementation decisions that is not be self-explanatory

Please provide a brief description of your ticket

I needs to be possible to add a file in the KB that's not in Hopper to Hopper

Description

right now I can remove them from the KB but not add them to Hopper.
Context: after uploading a zip with many files, several files seemed to have timed out at some point and as a result not have been added to Hopper (I thought we addressed this before?). Now they show up as present in the KB but not in Hopper. I need to be able to add them to Hopper.

HOP-68

Anything else the reviewer needs to know?

Does this Pull request depend on any other?

@diging-jenkins
Copy link
Copy Markdown

Can one of the admins verify this patch?

Comment thread hospexplorer/ask/kb_connector.py Outdated
Calls GET /docs/{doc_id}/file on the MCP KB server. Returns
(filename, bytes) on 200, or None on 404 (the KB has no local file
for that document — the caller should fall back to a tracking-only
record). Other HTTP errors propagate as today.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what does that mean "propagate as today"?

Comment thread hospexplorer/ask/views.py Outdated
original_filename = ""
status_message = "Tracked from KB; file not stored locally."
if downloaded is not None:
filename, content = downloaded
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Either this split should happen in line 381 (filename, content = download_kb_pdf(doc_id)) or there needs to be a comment that downloaded is actually a tuple. If I hadn't just reviewed the code for download_kb_pdf I would be very confused about this line (it's not super intuitive).

@jdamerow jdamerow closed this Jun 1, 2026
@Girik1105 Girik1105 reopened this Jun 2, 2026
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.

3 participants