Skip to content
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

Migrate to Tracker3. JB#53910 OMP#JOLLA-60 #1

Merged
merged 11 commits into from Jul 9, 2021
Merged

Migrate to Tracker3. JB#53910 OMP#JOLLA-60 #1

merged 11 commits into from Jul 9, 2021

Conversation

pvuorela
Copy link
Contributor

Still qt4, let's just remove.
The binding part has slight behavior change, but suppose that's how
it was meant to be.
Maybe made more sense when the code supported Qt4 and Qt5, but
now it's just wrappers for plain single method calls.
Marked as TODO for removed and not used for anything. Let's just remove
already.
Just extra confusion when the test files don't build and the feature
is left out.
Just a few example apps, let's just skip building those.
…9 OMP#JOLLA-74

For now supported by the tracker_direct driver, though even that now
skips the name as upstream clarified it's not needed for dbus based
connection. Leaving anyway here as this might change.

Related
https://gitlab.gnome.org/GNOME/tracker/-/issues/303
iteration \
asynctracker \
contacts

# QWidget based examples disabled for now:

Choose a reason for hiding this comment

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

You could put these inside a qtHaveModule(widgets) { } type condition which would prevent them being built in OBS where the module wouldn't be installed without it being added to dependencies. But then they would be built in an SDK that happened to have them installed and then you'd get errors because they're not packaged.

I don't know if there's value in packaging examples at all. The entire examples directory could easily be excluded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be honest I'm not sure do any of the examples even work properly here. Some have been looking for contacts which weren't there even before(?), some are using the plain tracker plugin (not tracker_direct) which doesn't work anymore. Some even doing some hard-coded tracker1 d-bus.

Could be an option just to delete everything here, dunno.

@@ -376,13 +376,13 @@ QString QSparqlBinding::toString() const
{
quoted = true;
QDateTime dt = val.toDateTime();
int offset = dt.utcOffset();
int offset = dt.offsetFromUtc();

Choose a reason for hiding this comment

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

Any idea why QDateTime::toString(Qt::ISODate) isn't used?

Copy link

@chriadam chriadam Jun 23, 2021

Choose a reason for hiding this comment

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

Maybe https://bugreports.qt.io/browse/QTBUG-26161 but not sure. See JB#52684#c7 for similar case perhaps.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No idea, was here just changing a deprecated method to its replacement which it was already calling internally.

A bit confusing on the naming, but this was a version directly on top
of d-bus without using any tracker libraries. Doesn't work anymore
with Tracker3 so let's just remove it.
@pvuorela
Copy link
Contributor Author

Added a commit to just remove the plain "tracker" plugin which was implemented on top of qdbus with tracker1 api.

@pvuorela pvuorela merged commit d7592a8 into master Jul 9, 2021
@mlehtima mlehtima deleted the tracker3 branch February 4, 2023 23: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
4 participants