Page MenuHomePhabricator

[services] Fix warnings
ClosedPublic

Authored by michal on Dec 8 2023, 7:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 26, 5:26 AM
Unknown Object (File)
Tue, Jun 25, 12:20 PM
Unknown Object (File)
Tue, Jun 25, 12:20 PM
Unknown Object (File)
Tue, Jun 25, 12:19 PM
Unknown Object (File)
Tue, Jun 25, 12:19 PM
Unknown Object (File)
Mon, Jun 24, 9:50 PM
Unknown Object (File)
Mon, Jun 10, 2:49 PM
Unknown Object (File)
Thu, Jun 6, 9:54 AM
Subscribers

Details

Summary

Fixes two small warnings:

  • unused import
  • deprecation of from_utc -> replaced with from_naive_utc_and_offset

The second one is a bit tricker because the deprecation notice was introduced in a patch version, and our services used two different versions of the library. The newer version had the deprecation notice. But we can't just update all the callsites because the older version doesn't have the replacement function. Because of that I also pinned this library in all of our dependencies to the newer patch version.

Depends on D10256

Test Plan

Check if services compile.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

michal requested review of this revision.Dec 8 2023, 8:22 AM

Finally 🎉

The second one is a bit tricker because the deprecation notice was introduced in a patch version, and our services used two different versions of the library. The newer version had the deprecation notice. But we can't just update all the callsites because the older version doesn't have the replacement function. Because of that I also pinned this library in all of our dependencies to the newer patch version.

I remember I coudn't figure it out when I tried fixing it once

Looks like now I'll have to rebase D10301 to get the fix there too

This revision is now accepted and ready to land.Dec 12 2023, 4:21 AM