Skip to content

102 do not create channel if folder does not exist#108

Merged
hailihu merged 9 commits intomasterfrom
102-do-not-create-channel-if-folder-does-not-exist
Sep 3, 2025
Merged

102 do not create channel if folder does not exist#108
hailihu merged 9 commits intomasterfrom
102-do-not-create-channel-if-folder-does-not-exist

Conversation

@onnozweers
Copy link
Contributor

@onnozweers onnozweers commented Aug 12, 2025

Improved validation for --events and --report-staged

Fixes #102

I cherry-picked two commits from branch #106

* New function is_dir() interfered with the output of create_path()
* Typo was fixed in ada but should be fixed in unit test as well, to match
* Ada now checks whether a valid, existing directory is provided
* The order of validation has changed to provide more accurate error messages. When the channel name is missing, Ada will not say the path is missing, but say that the channel name and directory are missing (because if there's no channel name, the path must be missing as well)
@onnozweers onnozweers requested a review from hailihu August 12, 2025 08:02
@onnozweers onnozweers linked an issue Aug 12, 2025 that may be closed by this pull request
onnozweers and others added 5 commits September 3, 2025 10:11
Because the path validation calls the API and this will fail when the authentication has not been set up.
This should prevent us developers from making this mistake again.
Copy link
Contributor

@hailihu hailihu left a comment

Choose a reason for hiding this comment

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

Looks good and integration test is succeeding.

@hailihu hailihu merged commit 7acaa70 into master Sep 3, 2025
1 check passed
@onnozweers
Copy link
Contributor Author

Thanks! I like how you fixed the unit test!

@hailihu hailihu deleted the 102-do-not-create-channel-if-folder-does-not-exist branch September 9, 2025 09:51
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.

Do not create channel if folder does not exist

2 participants