https://prefect.io logo
Title
j

Jonathan Wright

03/30/2021, 4:00 PM
I am doing some final testing of an extension to the Bitbucket storage class which adds support for Bitbucket cloud. When I register a flow using my new storage class a new
workspace
variable is not showing in the UI. I have also shown that when the flow runs, in an environment with the same version of the storage class, the
workspace
variable is None. I assumed my storage class would be pickled and stored with the flow and I wouldn’t need to make any code changes outside of this file. What am I missing? https://github.com/PrefectHQ/prefect/blob/master/src/prefect/storage/bitbucket.py
my flow code
bb_storage = Bitbucket(
        workspace="mycompany",
        project="TRAN", 
        repo="prefect_scratch_pad",
        path="myflow.py",
    )

assert bb_storage.build().workspace == "mycompany"

with Flow("Bitbucket cloud storage test", storage = bb_storage) as f:
    caller_identity()

f.register(project_name="jwright")
workspace
is not showing here?
m

Mariia Kerimova

03/30/2021, 4:14 PM
Hello Jonathan! This channel is dedicated to topics related to Prefect contributions such as adding new features and enhancements, fixing bugs, etc. For questions like yours, please post in #prefect-community or other relevant channels. It looks like Bitbucket storage doesn't support
workspace
parameter, that's why it doesn't show up in details. Let me open an issue for this.
j

Jonathan Wright

03/30/2021, 4:15 PM
Hi @Mariia Kerimova. I am adding a new feature. i.e. extending the source code of the storage class
:thank-you: 1
m

Mariia Kerimova

03/30/2021, 4:25 PM
j

Jonathan Wright

03/30/2021, 4:26 PM
Excellent thank you
👍 1
I’ve resolved my issue for now. I guess I can reuse this issue when I raise the PR.
m

Mariia Kerimova

03/30/2021, 4:57 PM
Awesome!
z

Zanie

03/30/2021, 6:29 PM
Thanks for taking the time to contribute @Jonathan Wright 🙂 Let me know if you run into any more confusing issues!