-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix ghost facts #2978
Merged
Merged
Fix ghost facts #2978
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
78a050e
add facts deletion upon fact source deletion
guillaume-duong-bib e85cc4f
add facts deletion upon operation deletion
guillaume-duong-bib 8be9f03
add relationships deletion upon fact sources deletion
guillaume-duong-bib 7357818
add relationships deletion upon operation deletion
guillaume-duong-bib 8c2a3e6
Merge branch 'mitre:master' into fix-ghost-facts
guillaume-duong-bib a253e6b
add get_facts_from_source
guillaume-duong-bib 3ad8849
retrieve seeded facts directly from source
guillaume-duong-bib 344ab0e
Merge branch 'master' into fix-ghost-facts
guillaume-duong-bib ef24d73
update logging
guillaume-duong-bib 3af0e99
Merge branch 'mitre:master' into fix-ghost-facts
maxime-escourbiac-bib File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from app.api.v2.managers.base_api_manager import BaseApiManager | ||
|
||
class FactSourceApiManager(BaseApiManager): | ||
def __init__(self, data_svc, file_svc, knowledge_svc): | ||
super().__init__(data_svc=data_svc, file_svc=file_svc) | ||
self.knowledge_svc = knowledge_svc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clenk How do you feel about this?
Im given pause as
all_facts()
is called a lot in code base. However, this change seems to be equivalent as only getting facts for the given source.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from fixing the issues mentioned, what does change is that modifying the base fact source will directly be reflected on the seeded_facts part, even during an operation. But is that an expected behavior, or is a simple doc update to warn users enough?
I can't think of/have not found anything else that could be troublesome.