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

Fix issue with asset_ids in create-catalog #15

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

hrodmn
Copy link
Contributor

@hrodmn hrodmn commented Jul 21, 2023

Related Issue(s):
Resolves #14

Description:
Rather than overwriting asset_ids variable when running the first collection, conditionally loop through asset_ids or utils.fetch_ids(product) to make sure you are not running asset_ids from one product on the other!

PR checklist:

  • Code is formatted (run scripts/format).

  • Code lints properly (run scripts/lint).

    • this is failing due to a typing issue in stactools.core, I think?
    $ scripts/lint
      mypy.....................................................................Failed
      - hook id: mypy
      - exit code: 1
      
      tests/test_commands.py:14: error: Class cannot subclass "CliTestCase" (has type "Any")  [misc]
      Found 1 error in 1 file (checked 10 source files)
    
  • Tests pass (run scripts/test).

    • pytest is passing, but not the linter that runs before it
  • Documentation has been updated to reflect changes, if applicable.

  • Changes are added to the CHANGELOG.

Copy link
Contributor

@gadomski gadomski left a comment

Choose a reason for hiding this comment

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

Looks fine to me, the PR just needs to be updated with main to pick up #16, which I can't do b/c I don't have permissions on https://github.com/ncx-co/threedep. In the future, it can be easier if you create a branch on your fork for the PR -- that allows me to make minor fixup changes if needed.

Thanks for the contribution!

src/stactools/threedep/stac.py Outdated Show resolved Hide resolved
@hrodmn
Copy link
Contributor Author

hrodmn commented Aug 8, 2023

Looks fine to me, the PR just needs to be updated with main to pick up #16, which I can't do b/c I don't have permissions on https://github.com/ncx-co/threedep.

I rebased my branch to get the latest changes, should be good to go now!

In the future, it can be easier if you create a branch on your fork for the PR -- that allows me to make minor fixup changes if needed.

Ah I see. So instead of pushing changes to main on my forked copy, just push changes to a branch and open a PR to the upstream repo?

@gadomski
Copy link
Contributor

gadomski commented Aug 8, 2023

Ah I see. So instead of pushing changes to main on my forked copy, just push changes to a branch and open a PR to the upstream repo?

Yup, that makes it easier to (a) open multiple PRs from your fork, if you'd like to, and (b) repo maintainers (e.g. me) to push changed to your branch.

@gadomski gadomski self-requested a review August 8, 2023 12:11
@gadomski gadomski enabled auto-merge (rebase) August 8, 2023 12:12
@gadomski gadomski merged commit 1948fd4 into stactools-packages:main Aug 8, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants