-
Notifications
You must be signed in to change notification settings - Fork 145
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
Remove ' ' as a configured Confluence space when there's a trailing comma #3090
base: main
Are you sure you want to change the base?
Remove ' ' as a configured Confluence space when there's a trailing comma #3090
Conversation
Went based on where the issue said this problem stemmed from. If there's a way to just strip the whitespace from the string when the configuration is sent that may be better? |
Great find! I agree that this will address the problem reported in the issue. Let's add a new test though. While we don't need the test to prove this works (it's simple enough a change that it's pretty obvious it'll work), adding a test will protect us against a regression in case this line/logic is ever broken in the future. You should be able to add just one pytest function to https://github.com/elastic/connectors/blob/main/tests/sources/test_confluence.py like:
However, I'd bet that this bug goes deeper. Since any connectors/connectors/sources/confluence.py Lines 517 to 522 in c664243
Field class (see https://github.com/elastic/connectors/blob/main/connectors/source.py#L77) to see if we can eliminate this issue for list-type fields.
|
ahh ok I see now where the string gets parsed. Thanks! |
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.
LGTM, but would it would be good to have unit tests to ensure this keeps working correctly, I can see _convert
unit tests in https://github.com/elastic/connectors/blob/main/tests/test_source.py#L77
buildkite test this |
☝️ Do we need to do changes in backstage so that Meghan/Matt would trigger CI too? |
Ah sorry, I see you're forking the repository @meghanmurphy1. To make CI run automatically you need to make PRs in this repository, not in forks. I'll fix CI breaking on the above in the meantime |
CI failure should be fixed by #3095 |
Closes #2643
A fix for when a trailing comma is used as part of 'Confluence space keys' when configuring a Confluence Connector.
Checklists
Pre-Review Checklist
config.yml.example
)v7.13.2
,v7.14.0
,v8.0.0
)Changes Requiring Extra Attention
Related Pull Requests
Release Note