I am doing some final testing of an extension to t...
# prefect-contributors-archived
j
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
Copy 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
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 #CL09KU1K7 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
Hi @Mariia Kerimova. I am adding a new feature. i.e. extending the source code of the storage class
🙏 1
m
j
Excellent thank you
👍 1
I’ve resolved my issue for now. I guess I can reuse this issue when I raise the PR.
m
Awesome!
z
Thanks for taking the time to contribute @Jonathan Wright 🙂 Let me know if you run into any more confusing issues!