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

implement working updated version of findAllChildTerms #581

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

Etschbeijer
Copy link
Collaborator

Closes #578

@Etschbeijer Etschbeijer marked this pull request as ready for review November 26, 2024 13:25
@Etschbeijer Etschbeijer self-assigned this Nov 26, 2024
src/Server/Database/Term.fs Show resolved Hide resolved
@@ -185,6 +185,45 @@ type Term(?credentials:Neo4JCredentials, ?session:IAsyncSession) =
printfn "%s" exn.Message
[||]

/// <summary>
/// This is a more complete implementation, which should be abstracted more later.
Copy link
Collaborator

Choose a reason for hiding this comment

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

copy-paste comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

searchTerm : TermQuery -> Async<Term []>
searchTerms : TermQuery[] -> Async<TermQueryResults[]>
getTermById : string -> Async<Term option>
findAllChildTerms : TermQuery -> Async<Term []>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do not use TermQuery. Introduce a new type, tailored to the API request. You are not using like 50% of the type.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

src/Server/Database/Term.fs Show resolved Hide resolved
@Freymaurer Freymaurer merged commit 9a18456 into main Nov 27, 2024
2 checks passed
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.

[Bug]: Find all child terms does not only use is_a relationships unlike the auto complete search
2 participants