-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add xdp prefixes and move portal implementations to new directory #1438
Conversation
I know the diff looks daunting but this really just needs an ack on the decisions I've made here, namely:
|
Proper namespacing is important when doing shared libraries. I'm a bit less convinced e.g. The moving around and renaming files I see the point, but also there are not that many files, so it doesn't get us that much, and makes git archeology a bit more annoying. So, overall, I think the structure we have already is good enough, and this doesn't improve things enough to make it worth it. No strong opinions though. |
Not having a prefix means we can't use the G_DECLARE_TYPE macros which is the main motivation for me. It unlocks a bunch of other cleanups, having a proper split between private and public API etc. |
Being able to use boilerplate-reducing gobject macros is a good argument, indeed. |
32a10f4
to
60a30d6
Compare
I'm willing to drop the last two commits which move around files to new directories if that helps to get this moving. |
It creates a bit of churn for minor niceties but I'd also say I'm fairly neutral on it. I'm not sure how many neutrals equal a positive though :P Needs a rebase at the least. |
It pretty much always needs a rebase when something changes so I'd like to avoid doing the work until a decision has been made. |
I'll merge it this weekend if nobody disagrees. |
Please don't merge it. Neither me nor @jadahl have re-reviewed it nor discussed it again. |
Rebased |
OK. I was just going off of his "No strong opinions though." |
No one has strong opinions and I have cleanups planned on top of this so is there really a good reason to not just go ahead with it? |
Moves the files from launch-context to xdp-app-launch-context because it implements the XdpAppLaunchContext class.
It is defined and used in this namespace so rename it to XdpSessionPersistenceMode.
The files implement functions in the XdpSessionPersistence namespace so rename the files accordingly.
Renames the portal-impl files to xdp-portal-impl.
Rename the Call class to XdpCall and adjust the function names accordingly.
Renames the call files to xdp-call.
Rename the Request class to XdpRequest and adjust the function names accordingly.
Renames the request files to xdp-request.
Rename the Session class to XdpSession and adjust the function names accordingly.
Renames the session files to xdp-session.
Rename the Permission enum and related functions to have an XDP prefix.
Renames the permission files to xdp-permission.
Rename the DocumentFlags enum and related functions to have an XDP prefix.
Renames the documents files to xdp-documents.
In my opinion this change is too big for the "no objection" policy, so it needs more than a lack of objections, it needs explicit agreement. |
This has no functional changes whatsoever. Categorizing it as big because it touches a lot of code isn't helpful. We also just merged the python formatting changes without too much scrutiny. This PR is quite annoying because you claim that this needs explicit agreement while also not reviewing it. There is literally nothing I can do on my end other than trying to convince you to take the 10 minutes to go through the changes. |
As unhelpful as it may sound, I think a 99-file thousand-line-diff PR can be called "big" by any practical standards. It's also mixing different changes in a single PR (changing namespaces and moving files).
The Python tests were merged by @TingPing without any prior coordination, nor the usual approval by whot. I did not agree with that but I respect the decision to merge it. If you think merging these Python formatting changes without a thorough review was a mistake, then I think we should revert it, and reopen the PR.
I think we can agree on this. This PR is large, so much so that everything that is merged conflicts with it, which might indicate that this may be too big in the first place. Generally it is a welcomed courtesy to discuss changes like this before opening a PR. Because it is a big change, it'll accumulate conflicts the more it stays open. The way to have merged this fast was to have everyone onboard before opening it.
Be patient. You could have chosen a path where things could have been faster, but instead chose a lengthier one, and that's the consequence. (I'd also appreciate if you could stop with the implicit accusations here.)
That's not only very hyperbolic (it takes a lot more than 10 minutes to review something like this), but factually there are many things you could and still can do: you could have coordinated before opening the PR; you can stop pressuring people to accept your changes without scrutiny; etc. Shouting and pressuring can only get you so far, but at some point you'll need to learn how to work productively with others. Actually, as I'm typing this, I realized that not only I think this PR is unreviewable, the whole process was messed up. So I'm going to close it, and let you do things in a more appropriate and respectful way. Please try again, and do better. |
The only tractable thing you said is that splitting up the PR would help reviewing. I asked before if it would help but again, didn't receive an answer. All of this is nothing short of insulting and I take it exactly as that. On another PR you also escalated to situation because I said a combination of flags is "weird". You clearly have personal issues with me and are abusing your maintainer role here. Instead of blaming me for everything all the time, consider how you're interacting with me. And all of that for a PR that is a trivial search and replace... |
FWIW I merged one PR approved by whot and the other one had no logic changes and was approved by whot immediately after it was merged anyway. All I wanted to do was lower the burden of other reviewers by doing a few myself. |
And I appreciate that. I don't see how this would have required any more attention and I feel like Georges really is just trying to put everything into a bad light here. |
Anyway, I opened a new PR which drops the commits which move things around. I would appreciate if we could all calm down, stop escalating and making things personal. We all just want to make things better here after all... |
This renames a bunch of classes, enums and functions to have the XDP prefix. The portal implementations are moved into the portals subdir. Sources for helper binaries are moved to the new helpers subdir.
A lot of code movement but no functional changes.