-
Notifications
You must be signed in to change notification settings - Fork 86
Add AudioBlock implementation with tests #187
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
base: main
Are you sure you want to change the base?
Add AudioBlock implementation with tests #187
Conversation
This change: - Adds new interface to unify common functionality - Implements interface for PdfBlock, FileBlock, and ImageBlock - Adds comprehensive test coverage
- Implemented GetURL() and GetExpiryTime() methods for AudioBlock - Added comprehensive tests for AudioBlock functionality - Added interface compliance checks
const.go
Outdated
@@ -218,6 +218,8 @@ const ( | |||
BlockTypeChildPage BlockType = "child_page" | |||
BlockTypeChildDatabase BlockType = "child_database" | |||
|
|||
BlockTypeAudio BlockType = "audio" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other constants are grouped. Maybe then put this BlockTypeAudo
after image
and before video
so it's grouped as well?
Thanks for the feedback! I'll move the BlockTypeAudio constant to be grouped with other media types, placing it between image and video blocks for better organization. |
Thanks for the feedback! I've moved the BlockTypeAudio constant to be
grouped with other media types, placing it between image and video blocks
for better organization.
Eugene ***@***.***>, 21 Ara 2024 Cmt, 18:27 tarihinde şunu
yazdı:
… ***@***.**** commented on this pull request.
------------------------------
In const.go
<#187 (comment)>:
> @@ -218,6 +218,8 @@ const (
BlockTypeChildPage BlockType = "child_page"
BlockTypeChildDatabase BlockType = "child_database"
+ BlockTypeAudio BlockType = "audio"
Other constants are grouped. Maybe then put this BlockTypeAudo after image
and before video so it's grouped as well?
—
Reply to this email directly, view it on GitHub
<#187 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2AW4K5CYQWTMHRAD3NZVSL2GWCHFAVCNFSM6AAAAABT75UCPWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKMJYGY3TQMJZGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@aydinomer00 sync please your branch, so it doesn't have conflicts for merging. I guess then it will be sooner to be merged by maintainer. P.S. I'm ok sitting with local branch-on-top-of-branches, but i'm looking forward to getting this merged as well :) |
@amberpixels Thank you so much for your patience and guidance! I’m still learning the ropes with Git and doing my best to follow your instructions. I’ve tried to sync my branch and resolve the conflicts, but I’m not entirely sure if everything was done correctly. If you notice any mistakes or have additional suggestions, I’d really appreciate your feedback. Thanks again for all your help! |
hey @aydinomer00. There are several ways of resolving the issue. I don't claim my approach is the most comfortable, but here what you can do:
|
@amberpixels I just used the “Update branch” button to sync my branch with the upstream repository. It looks like there aren’t any conflicts so far. Could you please take a look and let me know if you spot any issues or have any suggestions? Thanks! |
@aydinomer00 could you please resolve conflicts in this PR? |
Fixes #183
This PR adds AudioBlock implementation with the following changes:
All tests are passing. The implementation follows the same pattern as other media blocks (Image, Video) in the codebase.