-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Macros Backend #4528
base: main
Are you sure you want to change the base?
Macros Backend #4528
Conversation
76f6088
to
d106a52
Compare
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.
This PR contains lots of unrelated and even wrong changes. Please revert them.
Examples:
DbId
- Reorderings in
Track
- ...
After reverting the unrelated changes the remaining commits should be stashed into a single commit before starting a review. I suppose reverting the unrelated changes in individual commits would even not be possible otherwise. |
Do you really want to give up all history? |
Not worth it imho. |
d106a52
to
6ff1b6d
Compare
Ready :) |
17e8ff6
to
721a2d9
Compare
@xeruf While rebasing, did you make sure every commit builds? (git bisect) |
there is only one commit, no need to bisect ;) I am building right now locally. |
51e5cea
to
9c0f7f2
Compare
@@ -402,6 +406,7 @@ class Track : public QObject { | |||
mixxx::TrackRecord newRecord, | |||
mixxx::BeatsPointer pOptionalBeats = nullptr); | |||
|
|||
bool isDirty(); |
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.
Please avoid unrelated reorderings in huge feature PRs.
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.
Why did you mark this comment as resolved while keeping the reordering??
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.
I had removed the unrelated reorderings, this function is clearly related.
Do you really prefer to keep the files messy rather than grouping functions with some logic, as you don't want separate cleanup PRs either?
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.
The reorderings could be done in a separate PR that does not modify the implementations. I already explained why.
9c0f7f2
to
ae703e8
Compare
ae703e8
to
5e30377
Compare
Now I have some weird issues: Every test individually succeeds, but when running them collectively with
It always hangs at 7/10, regardless of which test is executed as 7th. I am highly confused. |
1158131
to
e74bc59
Compare
As said, I would like to merge this week, I am not sure how much time I will find after that. |
maybe because clazy fails? https://github.com/mixxxdj/mixxx/runs/4263351165?check_suite_focus=true#step:9:741 |
src/track/macro.h
Outdated
/// A Macro stores a list of MacroActions as well as its current state and label. | ||
class Macro { | ||
public: | ||
static QByteArray serialize(const QList<MacroAction>& actions); |
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.
I don't understand why these functions for serializing/deserializing one of the members are public? I would expect them to handle the entire class and not only an isolated aspect.
The minimum change is renaming them as serializeActions()/deserializeActions(), but there should be a more appropriate design.
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.
the actions are the macro, this is what is needed to serialize it. Sure, they can be private, though I don't know what that adds.
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.
The macro entity is more than a list of actions. The list of actions is just the part that gets serialized.
Btw, repetition does not make wrong claims right. I am not going to explain everything twice.
3c5bf7d
to
999288a
Compare
@uklotzde sorry for me being slow-witted at times, my little C++ experience has already gotten rusty again 😅 |
Right, got me there :) |
Why was only one single CI test executed here? Maybe you need just rerun it? |
No idea. I only find time to look into this every few months, and unfortunately always some new nitpicks come up, delaying this feature for over a year by now... |
You need to fix the merge conflict, before it executes CI |
This PR is marked as stale because it has been open 90 days with no activity. |
This is forked off from #2989 with the GUI parts removed, to be merged this week :)
@daschuer @Holzhaus @Be-ing