Page MenuHomePhabricator

[services] Fix warnings
ClosedPublic

Authored by michal on Dec 8 2023, 7:01 AM.
Tags
None
Referenced Files
F3399568: D10257.diff
Mon, Dec 2, 3:50 AM
Unknown Object (File)
Thu, Nov 7, 12:00 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
Unknown Object (File)
Sep 13 2024, 8:08 PM
Unknown Object (File)
Sep 6 2024, 9:10 PM
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