-
Notifications
You must be signed in to change notification settings - Fork 14
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
#480 Basic search for versioned menas entities #481
#480 Basic search for versioned menas entities #481
Conversation
2 Suggestions don't auto refreshIf I create a new schema/dataset/mapping table and I don't do a full refresh I don't see the newly created item in the suggestions. 3 Suggestion suggest disabled itemsSuggestions suggest something that was already deleted/disabled |
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.
Doesn't seem to work as expected. Some partial matches hit, some don't, and I can't see suggestions.
Would be great if we had some tests as well.
menas/src/main/scala/za/co/absa/enceladus/menas/repositories/VersionedMongoRepository.scala
Show resolved
Hide resolved
menas/src/main/scala/za/co/absa/enceladus/menas/repositories/VersionedMongoRepository.scala
Outdated
Show resolved
Hide resolved
Any chance this is related to lastpass/lastpass-cli#428 ?? |
Signed-off-by: Jan Scherbaum <kmoj02@gmail.com>
Signed-off-by: Jan Scherbaum <kmoj02@gmail.com>
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.
Tests look good, but each case does a little too much. Test cases should have a tightly limited scope of what they verify.
} | ||
} | ||
"return seq of versioned summaries matching the search query" when { | ||
"datasets exist and search query is provided" in { |
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.
Can we break this down into separate cases? A test case should really only test one case (very limited asserts).
- test case for searching a disabled entity, should be in the "return an empty Seq" cases
- full match (given several datasets with similar names, i.e. search("dataset1"), returns "dataset1" of "dataset1,dataset2,dataset,somethingelse")
- partial match (given several datasets with similar names, i.e search("dataset") returns "dataset1,dataset2,dataset" of "dataset1,dataset2,dataset,somethingelse")
- empty search (search("") returns all enabled datasets)
} | ||
"return distinct list of enabled names" when { | ||
"datasets exist" in { | ||
val dataset1 = DatasetFactory.getDummyDataset(name = "dataset1", version = 1, |
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.
Same as for DatasetMongoRepository::getLatestVersions
- This should fix the undefined error on load - This should also fix the updated suggestions on edits etc
Ok this last commit should fix 2) 4) 5) |
Signed-off-by: Jan Scherbaum <kmoj02@gmail.com>
feature/480-basic-search-for-versioned-entities Conflicts: menas/src/main/scala/za/co/absa/enceladus/menas/repositories/VersionedMongoRepository.scala menas/src/test/scala/za/co/absa/enceladus/menas/integration/repositories/DatasetRepositoryIntegrationSuite.scala
No description provided.