Skip to content

Conversation

peternewman
Copy link
Member

@peternewman peternewman commented Mar 22, 2024

But maybe not for you, apologies I probably pulled a bit too much into this sorry.

Let me know if it's too much and I'll rethink somehow...

More of #1841

(cherry picked from commit 32ecc52)
(cherry picked from commit c2126d1)
(cherry picked from commit 2a43710)
(cherry picked from commit f49c1f8)
Tests still required for these!

(cherry picked from commit 9fab749)
(cherry picked from commit 6d4d923)
(cherry picked from commit 81b8e38)
(cherry picked from commit b23bc6b)
@peternewman peternewman added this to the 0.11.0 milestone Mar 22, 2024
@peternewman peternewman requested a review from kripton March 22, 2024 00:15
Copy link
Member

@kripton kripton left a comment

Choose a reason for hiding this comment

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

Nice work! See inline comments.
Keep 'em coming :)


// The max size of an E1.33 Status string.
enum {
MAX_E133_STATUS_STRING_SIZE = 64
Copy link
Member

Choose a reason for hiding this comment

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

Mh, you use single-element enums here and static const uint8_t in include/ola/rdm/RDMEnums.h (see MAX_RDM_DOMAIN_NAME_LENGTH). Is this on purpose or an inconsistency? Same for E133_VERSION below.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ask @nomis52 from 11 years ago! 😆
https://github.com/OpenLightingProject/ola/blame/f0b01b359b4bfc3e24eb0a7a2aa96028638128ef/include/ola/e133/E133Enums.h#L95

I just copied it for the version, but I guess we could theoretically support a few versions at the same time so maybe they should be an enum at least?

Copy link
Member

Choose a reason for hiding this comment

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

Sure, if multiple values make sense, keep it as an enum. How about this MAX_STRING_SIZE?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not entirely sure they do necessarily. I've kicked it down the road a bit and added a todo in #1841 anyway.

@peternewman
Copy link
Member Author

I've pushed. Do you want to re-review or are you happy if I just merge @kripton ?

@kripton
Copy link
Member

kripton commented Mar 27, 2024

I've pushed. Do you want to re-review or are you happy if I just merge @kripton ?

You can merge 👍 . If I approve on the first review, it's just minor stuff that I trust people to fix (or at least triage) before they merge. If it something I want to check again, I finish the review with "Comment only, no approval" :)

@peternewman peternewman mentioned this pull request Mar 27, 2024
8 tasks
@peternewman
Copy link
Member Author

You can merge 👍 . If I approve on the first review, it's just minor stuff that I trust people to fix (or at least triage) before they merge.

Cool, I think I'll park a chunk of the more complex ones or those that require a bit more thought/clean-up into the main issue to try and avoid conflicts and tidying up multiple times as different bits are merged. I think we're only around 1/3 to 1/4 of the way through so far unfortunately.

If it something I want to check again, I finish the review with "Comment only, no approval" :)

Or maybe you could use one of the specific options GitHub offers, then it's not actually possible to merge until you get an approval? :)

Comment
Submit general feedback without explicit approval.
Approve
Submit feedback and approve merging these changes.
Request changes
Submit feedback that must be addressed before merging.

@peternewman
Copy link
Member Author

Force merging as the CI error is already covered in #1948 .

@peternewman peternewman merged commit a05acc2 into OpenLightingProject:master Mar 27, 2024
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.

2 participants