-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #862 from lsst/tickets/DM-39915
DM-39915: Make butler.datastore an internal property
- Loading branch information
Showing
45 changed files
with
465 additions
and
203 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "Check commits can be merged" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
do-not-merge-checker: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check that there are no commits that should not be merged | ||
uses: gsactions/commit-message-checker@v2 | ||
with: | ||
excludeDescription: "true" # optional: this excludes the description body of a pull request | ||
excludeTitle: "true" # optional: this excludes the title of a pull request | ||
checkAllCommitMessages: "true" # optional: this checks all commits associated with a pull request | ||
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true | ||
# Check for message indicating that there is a commit that should | ||
# not be merged. | ||
pattern: ^(?!DO NOT MERGE) | ||
flags: "i" | ||
error: | | ||
"This step failed because there is a commit containing the text | ||
'DO NOT MERGE'. Remove this commit from the branch before merging | ||
or change the commit summary." | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Check requirements.txt for branches | ||
shell: bash | ||
run: | | ||
FILE=requirements.txt | ||
MATCH=tickets/DM- | ||
if grep -q $MATCH $FILE | ||
then | ||
echo "Ticket branches found in $FILE:" | ||
grep -n $MATCH $FILE | ||
exit 1 | ||
fi |
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 @@ | ||
Added new APIs to support the deprecation of ``LimitedButler.datastore``: | ||
* ``LimitedButler.get_datastore_roots`` can be used to retrieve any root URIs associated with attached datastores. | ||
If a datastore does not support the concept it will return `None` for its root URI. | ||
* ``LimitedButler.get_datastore_names`` can be used to retrieve the names of the internal datastores. | ||
* ``LimitedButler.get_many_uris`` allows for the bulk retrieval of URIs from a list of refs. | ||
* Also made ``getURI`` and ``getURIs`` available for ``LimitedButler``. |
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,2 @@ | ||
The semi-public ``Butler.datastore`` property has now been deprecated. | ||
The ``LimitedButler`` API has been expanded such that there is no longer any need for anyone to access the datastore class directly. |
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.