-
Notifications
You must be signed in to change notification settings - Fork 2
Maintenance week 07 2024 #160
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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 hidden or 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 |
|---|---|---|
| @@ -1,30 +1,29 @@ | ||
| #### What does this PR do? | ||
| A few sentences describing the overall goals of the pull request's commits. | ||
| Why are we making these changes? Is there more work to be done to fully | ||
| achieve these goals? | ||
| ### Purpose and background context | ||
| Describe the overall purpose of the PR changes and any useful background context. | ||
|
|
||
| #### Helpful background context | ||
| Describe any additional context beyond what the PR accomplishes if it is likely | ||
| to be useful to a reviewer. | ||
|
|
||
| Delete this section if it isn't applicable to the PR. | ||
|
|
||
| #### How can a reviewer manually see the effects of these changes? | ||
| ### How can a reviewer manually see the effects of these changes? | ||
| Explain how to see the proposed changes in the application if possible. | ||
|
|
||
| Delete this section if it isn't applicable to the PR. | ||
|
|
||
| #### Includes new or updated dependencies? | ||
| ### Includes new or updated dependencies? | ||
| YES | NO | ||
|
|
||
| #### Developer | ||
| - [ ] README is updated to reflect all changes as needed | ||
| ### Changes expectations for external applications? | ||
| YES | NO | ||
|
|
||
| ### What are the relevant tickets? | ||
| - Include links to Jira Software and/or Jira Service Management tickets here. | ||
|
|
||
| ### Developer | ||
| - [ ] All new ENV is documented in README | ||
| - [ ] All new ENV has been added to staging and production environments | ||
| - [ ] All related Jira tickets are linked in commit message(s) | ||
| - [ ] Stakeholder approval has been confirmed (or is not needed) | ||
|
|
||
| #### Code Reviewer | ||
| - [ ] The commit message is clear and follows our guidelines | ||
| (not just this pull request message) | ||
| ### Code Reviewer(s) | ||
| - [ ] The commit message is clear and follows our guidelines (not just this PR message) | ||
| - [ ] There are appropriate tests covering any new functionality | ||
| - [ ] The documentation has been updated to reflect all changes or is not needed | ||
| - [ ] The changes have been verified | ||
| - [ ] The provided documentation is sufficient for understanding any new functionality introduced | ||
| - [ ] Any manual tests have been performed and verified | ||
| - [ ] New dependencies are appropriate or there were no changes |
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.11.2 | ||
| 3.12 |
This file contains hidden or 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 hidden or 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -55,7 +55,7 @@ def records(self) -> Generator[dict[str, Any], Any, None]: | |
| yield dict(zip(result.keys(), row, strict=True)) | ||
|
|
||
| @abstractmethod | ||
| def _add_element(self, record: dict[str, Any]) -> None | ET._Element: # noqa: SLF001 | ||
| def _add_element(self, record: dict[str, Any]) -> None | ET._Element: | ||
| """Create an XML element for a provided record. | ||
|
|
||
| Must be overridden by subclasses. | ||
|
|
@@ -70,11 +70,11 @@ def _add_element(self, record: dict[str, Any]) -> None | ET._Element: # noqa: S | |
|
|
||
| def _add_subelement( | ||
| self, | ||
| parent: ET._Element, # noqa: SLF001 | ||
| parent: ET._Element, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor, but always appreciate when we can remove linting overrides / ignores. |
||
| element_name: str, | ||
| element_text: str | None = None, | ||
| **kwargs: str, | ||
| ) -> ET._Element: # noqa: SLF001): | ||
| ) -> ET._Element: | ||
| """Add an XML subelement to an existing element. | ||
|
|
||
| Args: | ||
|
|
@@ -115,7 +115,7 @@ class ArticlesXmlFeed(BaseXmlFeed): | |
| .where(aa_articles.c.MIT_ID.is_not(None)) | ||
| ) | ||
|
|
||
| def _add_element(self, record: dict[str, Any]) -> ET._Element: # noqa: SLF001 | ||
| def _add_element(self, record: dict[str, Any]) -> ET._Element: | ||
| """Create an XML element representing an article. | ||
|
|
||
| The function will create a single 'ARTICLE' element that contains subelements | ||
|
|
@@ -277,7 +277,7 @@ class PeopleXmlFeed(BaseXmlFeed): | |
| .where(func.upper(persons.c.JOB_TITLE).in_(titles)) | ||
| ) | ||
|
|
||
| def _add_element(self, record: dict[str, Any]) -> ET._Element: # noqa: SLF001 | ||
| def _add_element(self, record: dict[str, Any]) -> ET._Element: | ||
| """Create an XML element representing a person. | ||
|
|
||
| The function will create a single 'record' element that contains subelements | ||
|
|
||
This file contains hidden or 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 hidden or 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
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.
I was confused by this at first but it looks like the type hint was indeed updated, see #4 here
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.
Nice find! Helpful to understand why it changed.