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

allow components to add fingerprints of external data #12778

Merged
merged 4 commits into from Aug 30, 2023

Conversation

twerkmeister
Copy link
Contributor

@twerkmeister twerkmeister commented Aug 30, 2023

Proposed changes:

  • Added method to GraphComponent that allows users to add additional fingerprint data to their component, such as external files, knowledge bases etc. that are not directly in the rasa graph

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@twerkmeister twerkmeister requested a review from a team as a code owner August 30, 2023 11:45
Copy link
Member

@tmbo tmbo left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -76,3 +83,44 @@ def test_fingerprint_changes_due_to_changed_source(monkeypatch: MonkeyPatch):
assert key1 != key2

get_source_mock.assert_called_once_with(TEDPolicy)


def test_fingerprint_changes_when_external_file_changes():
Copy link
Member

Choose a reason for hiding this comment

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

OPT: can you split this into two tests: one testing that the fingerprint is stable and another to check it is changing?

@github-actions
Copy link
Contributor

🚀 A preview of the docs have been deployed at the following URL: https://12778--rasahq-docs-rasa-v2.netlify.app/docs/rasa

@sonarcloud
Copy link

sonarcloud bot commented Aug 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@twerkmeister twerkmeister merged commit 347a287 into main Aug 30, 2023
102 checks passed
@twerkmeister twerkmeister deleted the ENG-470-caching-with-external-data branch August 30, 2023 14:04
twerkmeister added a commit that referenced this pull request Aug 31, 2023
* allow components to add fingerprints of external data
twerkmeister added a commit that referenced this pull request Aug 31, 2023
* allow components to add fingerprints of external data
twerkmeister added a commit that referenced this pull request Sep 5, 2023
* allow components to add fingerprints of external data
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.

None yet

2 participants