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

Update for Prism V3 #50

Merged
merged 109 commits into from
Nov 6, 2023
Merged

Update for Prism V3 #50

merged 109 commits into from
Nov 6, 2023

Conversation

wd-mgreynolds
Copy link
Contributor

No description provided.

@CurtLH CurtLH self-requested a review October 18, 2023 22:47
# Conflicts:
#	prism/cli.py
#	prism/commands/buckets_commands.py
#	prism/commands/dataChanges_commands.py
#	prism/commands/fileContainers_commands.py
#	prism/commands/raas_commands.py
#	prism/commands/tables_commands.py
#	prism/commands/util.py
#	prism/prism.py
@CurtLH
Copy link
Contributor

CurtLH commented Oct 20, 2023

@wd-mgreynolds -- I tried to install your fork of the library, but the following error was generated:

Traceback (most recent call last):
  File "/Users/curtis.hampton/miniconda3/envs/example-dev/bin/prism", line 5, in <module>
    from prism.cli import main
  File "/Users/curtis.hampton/miniconda3/envs/example-dev/lib/python3.8/site-packages/prism/cli.py", line 9, in <module>
    import commands.tables_commands as t_commands
ModuleNotFoundError: No module named 'commands'

I wonder if you might have to edit the __init__.py to include the modules within ./commands/?

Copy link
Contributor

@CurtLH CurtLH left a comment

Choose a reason for hiding this comment

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

@wd-mgreynolds -- this isn't a complete review, but a couple things that we can start to think about as we review all the proposed changes.

requirements.txt Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
prism/commands/wql_commands.py Outdated Show resolved Hide resolved
prism/commands/raas_commands.py Outdated Show resolved Hide resolved
@CurtLH
Copy link
Contributor

CurtLH commented Oct 27, 2023

Fixed - there was a left-over garbage after a code refactor - fixed. This begs the question - should the pytest be more extensive?

I also added a sanity check to make sure a configuration (base_url/tenant/id/secret) was detected.

@wd-mgreynolds -- one day, I do think pytest could be more extensive. It's a bit tricky through because we would need to create a mock API in order for it to interact with. There are things like requests-mock and vcrpy to do this, but let's explore those after we get this initial support for V3 merged.

@wd-mgreynolds
Copy link
Contributor Author

I've pushed a first-cut of the revised README.md. I elaborated quite a bit with the idea that a non-administrator would be looking for this type of functionality, so more info is better. This is not final, but the overall structure is in place. Please review for structure and level of detail - final word smithing is still on the plate.

@wd-mgreynolds
Copy link
Contributor Author

I did another pass on the README - the text should be complete. I'm still thinking about the images, in terms of size, borders, and possibly animated GIFs. I like the idea of animations, but it can get really annoying after the first time the animation runs.

@CurtLH
Copy link
Contributor

CurtLH commented Nov 1, 2023

I did another pass on the README - the text should be complete. I'm still thinking about the images, in terms of size, borders, and possibly animated GIFs. I like the idea of animations, but it can get really annoying after the first time the animation runs.

@wd-mgreynolds -- I appreciate the thoroughness, but I think this is too much detail for the README. This level of documentation would be fine in Community, but I don't think GitHub is the right place. For example, check out the README for the Google API Client or the README for Boto3.

I think this README should have the following sections:

  • Overview of the package
  • Description of why it's useful
  • How to install it (this should only include the pip installation instructions, we don't need to show people how to install Python, PIP, or Git)
  • Examples of how to use the package (both the CLI and the Python Package)
  • How to report bugs or request new features

After this initial release, we can consider building further documentation helping a user get started, but the README should be brief and only the essential information.

@wd-mgreynolds
Copy link
Contributor Author

Thanks for the feedback and I appreciate your partnership. Unfortunately other commitments will limit the speed with which I will be able to make further changes. My manager has requested a hand-off meeting to provide any last details or answer any questions. Let me know if there's a better time next week and I'll throw a meeting on the calendar.

@CurtLH
Copy link
Contributor

CurtLH commented Nov 2, 2023

@wd-mgreynolds -- if you want to add me as a contributor to your forked repo, I can make some edits to the README.

@CurtLH CurtLH merged commit 8e68845 into Workday:master Nov 6, 2023
2 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
Development

Successfully merging this pull request may close these issues.

2 participants