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

Documentation for update calls #129

Open
peflo opened this issue Apr 24, 2019 · 0 comments
Open

Documentation for update calls #129

peflo opened this issue Apr 24, 2019 · 0 comments

Comments

@peflo
Copy link

peflo commented Apr 24, 2019

I spent a while banging my head on this so it might be worth updating the documentation -
I was trying to update a project description and it was reporting no error, but was not updating the project. After some trial and error I realized my problem - I was running:
project = stash.projects.get('TEST')
project.update(description='stashy test')

when what I needed to be doing was:
project - stash.projects['TEST']
project.update(description='stashy test')

Since the get returns a dict, update is a valid command and it reports success. Inspecting the 'project' object showed the update, but of course it wasn't actually sending anything to the server. It's perfectly valid behavior, just wasn't what I was expecting based on the description in the API - an example of an update call in the docs would have saved me some puzzlement.

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

No branches or pull requests

1 participant