Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
1.5.2 all tz=UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfliegner committed Dec 7, 2022
1 parent d4df661 commit 884dbe2
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 68 deletions.
105 changes: 55 additions & 50 deletions Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.8.0"
julia_version = "1.8.2"
manifest_format = "2.0"
project_hash = "ef1b87c6fb223c8779d30072c509905d8ea3d043"

[[deps.AbstractTrees]]
git-tree-sha1 = "5c0b629df8a5566a06f5fef5100b53ea56e465a0"
git-tree-sha1 = "52b3b436f8f73133d7bc3a6c71ee7ed6ab2ab754"
uuid = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
version = "0.4.2"
version = "0.4.3"

[[deps.Adapt]]
deps = ["LinearAlgebra"]
Expand All @@ -32,9 +32,9 @@ version = "0.4.2"

[[deps.Compat]]
deps = ["Dates", "LinearAlgebra", "UUIDs"]
git-tree-sha1 = "3ca828fe1b75fa84b021a7860bd039eaea84d2f2"
git-tree-sha1 = "00a2cccc7f098ff3b66806862d275ca3db9e6e5a"
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
version = "4.3.0"
version = "4.5.0"

[[deps.CompilerSupportLibraries_jll]]
deps = ["Artifacts", "Libdl"]
Expand All @@ -47,15 +47,15 @@ uuid = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"
version = "4.1.1"

[[deps.DataAPI]]
git-tree-sha1 = "46d2680e618f8abd007bce0c3026cb0c4a8f2032"
git-tree-sha1 = "e08915633fcb3ea83bf9d6126292e5bc5c739922"
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
version = "1.12.0"
version = "1.13.0"

[[deps.DataFrames]]
deps = ["Compat", "DataAPI", "Future", "InvertedIndices", "IteratorInterfaceExtensions", "LinearAlgebra", "Markdown", "Missings", "PooledArrays", "PrettyTables", "Printf", "REPL", "Random", "Reexport", "SnoopPrecompile", "SortingAlgorithms", "Statistics", "TableTraits", "Tables", "Unicode"]
git-tree-sha1 = "558078b0b78278683a7445c626ee78c86b9bb000"
git-tree-sha1 = "d4f69885afa5e6149d0cab3818491565cf41446d"
uuid = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
version = "1.4.1"
version = "1.4.4"

[[deps.DataStructures]]
deps = ["Compat", "InteractiveUtils", "OrderedCollections"]
Expand Down Expand Up @@ -83,9 +83,9 @@ uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"

[[deps.DocStringExtensions]]
deps = ["LibGit2"]
git-tree-sha1 = "5158c2b41018c5f7eb1470d558127ac274eca0c9"
git-tree-sha1 = "c36550cb29cbe373e95b3f40486b9a4148f89ffd"
uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
version = "0.9.1"
version = "0.9.2"

[[deps.Downloads]]
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
Expand Down Expand Up @@ -124,9 +124,9 @@ version = "1.0.1"

[[deps.InlineStrings]]
deps = ["Parsers"]
git-tree-sha1 = "d0ca109edbae6b4cc00e751a29dcb15a124053d6"
git-tree-sha1 = "0cf92ec945125946352f3d46c96976ab972bde6f"
uuid = "842dd82b-1e85-43dc-bf29-5d0ee9dffc48"
version = "1.2.0"
version = "1.3.2"

[[deps.InteractiveUtils]]
deps = ["Markdown"]
Expand All @@ -139,9 +139,9 @@ uuid = "d8418881-c3e1-53bb-8760-2df7ec849ed5"
version = "1.8.0"

[[deps.InvertedIndices]]
git-tree-sha1 = "bee5f1ef5bf65df56bdd2e40447590b272a5471f"
git-tree-sha1 = "82aec7a3dd64f4d9584659dc0b62ef7db2ef3e19"
uuid = "41ab1584-1d38-5bbf-9106-f11c6c58b48f"
version = "1.1.0"
version = "1.2.0"

[[deps.IterTools]]
git-tree-sha1 = "fa6287a4469f5e048d763df38279ee729fbd44e5"
Expand All @@ -160,17 +160,22 @@ uuid = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
version = "1.4.1"

[[deps.JSON3]]
deps = ["Dates", "Mmap", "Parsers", "StructTypes", "UUIDs"]
git-tree-sha1 = "f1572de22c866dc92aea032bc89c2b137cbddd6a"
deps = ["Dates", "Mmap", "Parsers", "SnoopPrecompile", "StructTypes", "UUIDs"]
git-tree-sha1 = "84b10656a41ef564c39d2d477d7236966d2b5683"
uuid = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
version = "1.10.0"
version = "1.12.0"

[[deps.Kerberos_krb5_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
git-tree-sha1 = "60274b4ab38e8d1248216fe6b6ace75ae09b0502"
uuid = "b39eb1a6-c29a-53d7-8c32-632cd16f18da"
version = "1.19.3+0"

[[deps.LaTeXStrings]]
git-tree-sha1 = "f2355693d6778a178ade15952b7ac47a4ff97996"
uuid = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
version = "1.3.0"

[[deps.LayerDicts]]
git-tree-sha1 = "6087ad3521d6278ebe5c27ae55e7bbb15ca312cb"
uuid = "6f188dcb-512c-564b-bc01-e0f76e72f166"
Expand Down Expand Up @@ -202,9 +207,9 @@ version = "1.14.1"

[[deps.LibPQ_jll]]
deps = ["Artifacts", "JLLWrappers", "Kerberos_krb5_jll", "Libdl", "OpenSSL_jll", "Pkg"]
git-tree-sha1 = "91ecfc8b1c4dc529be4531fc69b752361ca81a5e"
git-tree-sha1 = "a299629703a93d8efcefccfc16b18ad9a073d131"
uuid = "08be9ffa-1c94-5ee5-a977-46a84ec9b350"
version = "14.3.0+0"
version = "14.3.0+1"

[[deps.LibSSH2_jll]]
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
Expand Down Expand Up @@ -238,9 +243,9 @@ version = "2.28.0+0"

[[deps.Memento]]
deps = ["Dates", "Distributed", "Requires", "Serialization", "Sockets", "Test", "UUIDs"]
git-tree-sha1 = "bb1167df2fae4a2e6a9350aedc2193a3b70d59fc"
git-tree-sha1 = "bb2e8f4d9f400f6e90d57b34860f6abdc51398e5"
uuid = "f28f55f0-a522-5efc-85c2-fe41dfb9b2d9"
version = "1.4.0"
version = "1.4.1"

[[deps.Millboard]]
git-tree-sha1 = "ea6a5b7e56e76d8051023faaa11d91d1d881dac3"
Expand All @@ -257,10 +262,10 @@ version = "1.0.2"
uuid = "a63ad114-7e13-5084-954f-fe012c677804"

[[deps.Mocking]]
deps = ["ExprTools"]
git-tree-sha1 = "748f6e1e4de814b101911e64cc12d83a6af66782"
deps = ["Compat", "ExprTools"]
git-tree-sha1 = "c272302b22479a24d1cf48c114ad702933414f80"
uuid = "78c3b35d-d492-501b-9361-3d52fe80e533"
version = "0.7.2"
version = "0.7.5"

[[deps.MozillaCACerts_jll]]
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
Expand All @@ -272,9 +277,9 @@ version = "1.2.0"

[[deps.OffsetArrays]]
deps = ["Adapt"]
git-tree-sha1 = "1ea784113a6aa054c5ebd95945fa5e52c2f378e7"
git-tree-sha1 = "f71d8950b724e9ff6110fc948dff5a329f901d64"
uuid = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
version = "1.12.7"
version = "1.12.8"

[[deps.OpenBLAS_jll]]
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
Expand All @@ -283,20 +288,20 @@ version = "0.3.20+0"

[[deps.OpenSSL_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
git-tree-sha1 = "e60321e3f2616584ff98f0a4f18d98ae6f89bbb3"
git-tree-sha1 = "f6e9dba33f9f2c44e08a020b0caf6903be540004"
uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95"
version = "1.1.17+0"
version = "1.1.19+0"

[[deps.OrderedCollections]]
git-tree-sha1 = "85f8e6578bf1f9ee0d11e7bb1b1456435479d47c"
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
version = "1.4.1"

[[deps.Parsers]]
deps = ["Dates"]
git-tree-sha1 = "3d5bf43e3e8b412656404ed9466f1dcbf7c50269"
deps = ["Dates", "SnoopPrecompile"]
git-tree-sha1 = "b64719e8b4504983c7fca6cc9db3ebc8acc2a4d6"
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
version = "2.4.0"
version = "2.5.1"

[[deps.Pkg]]
deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
Expand All @@ -316,10 +321,10 @@ uuid = "21216c6a-2e73-6563-6e65-726566657250"
version = "1.3.0"

[[deps.PrettyTables]]
deps = ["Crayons", "Formatting", "Markdown", "Reexport", "StringManipulation", "Tables"]
git-tree-sha1 = "460d9e154365e058c4d886f6f7d6df5ffa1ea80e"
deps = ["Crayons", "Formatting", "LaTeXStrings", "Markdown", "Reexport", "StringManipulation", "Tables"]
git-tree-sha1 = "96f6db03ab535bdb901300f88335257b0018689d"
uuid = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
version = "2.1.2"
version = "2.2.2"

[[deps.Printf]]
deps = ["Unicode"]
Expand All @@ -335,9 +340,9 @@ uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[[deps.RecipesBase]]
deps = ["SnoopPrecompile"]
git-tree-sha1 = "612a4d76ad98e9722c8ba387614539155a59e30c"
git-tree-sha1 = "18c35ed630d7229c5584b945641a73ca83fb5213"
uuid = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
version = "1.3.0"
version = "1.3.2"

[[deps.Reexport]]
git-tree-sha1 = "45e428421666073eab6f2da5c9d310d99bb12f9b"
Expand Down Expand Up @@ -367,15 +372,15 @@ version = "1.1.1"

[[deps.SearchLight]]
deps = ["DataFrames", "Dates", "Distributed", "Inflector", "Intervals", "JSON3", "Logging", "Millboard", "OrderedCollections", "Reexport", "SHA", "Unicode", "YAML"]
git-tree-sha1 = "2e6b6633778fdf866c773e817d915e45b3a118f6"
git-tree-sha1 = "d20221843386c55981fa0f2dc307ee5e3b8338a6"
uuid = "340e8cb6-72eb-11e8-37ce-c97ebeb32050"
version = "2.8.0"
version = "2.10.0"

[[deps.SearchLightPostgreSQL]]
deps = ["DataFrames", "LibPQ", "Logging", "SearchLight"]
git-tree-sha1 = "4a66dfc2fdde79451e94e02e0b2b756fd047f275"
git-tree-sha1 = "dd8cab8a1f07e7aae8c7a563f3ba442a5a0e2faf"
uuid = "4327cdd6-4902-11ea-0272-430cea0431bd"
version = "2.3.2"
version = "2.3.3"

[[deps.Serialization]]
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
Expand All @@ -390,9 +395,9 @@ uuid = "6462fe0b-24de-5631-8697-dd941f90decc"

[[deps.SortingAlgorithms]]
deps = ["DataStructures"]
git-tree-sha1 = "b3363d7460f7d098ca0912c69b082f75625d7508"
git-tree-sha1 = "a4ada03f999bd01b3a25dcaa30b2d929fe537e00"
uuid = "a2af1166-a08f-5f64-846c-94a0d3cef48c"
version = "1.0.1"
version = "1.1.0"

[[deps.SparseArrays]]
deps = ["LinearAlgebra", "Random"]
Expand Down Expand Up @@ -432,24 +437,24 @@ version = "1.0.1"

[[deps.Tables]]
deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "LinearAlgebra", "OrderedCollections", "TableTraits", "Test"]
git-tree-sha1 = "2d7164f7b8a066bcfa6224e67736ce0eb54aef5b"
git-tree-sha1 = "c79322d36826aa2f4fd8ecfa96ddb47b174ac78d"
uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
version = "1.9.0"
version = "1.10.0"

[[deps.Tar]]
deps = ["ArgTools", "SHA"]
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
version = "1.10.0"
version = "1.10.1"

[[deps.Test]]
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[deps.TimeZones]]
deps = ["Dates", "Downloads", "InlineStrings", "LazyArtifacts", "Mocking", "Printf", "RecipesBase", "Scratch", "Unicode"]
git-tree-sha1 = "d634a3641062c040fc8a7e2a3ea17661cc159688"
git-tree-sha1 = "a92ec4466fc6e3dd704e2668b5e7f24add36d242"
uuid = "f269a46b-ccf7-5d73-abea-4c690281aa53"
version = "1.9.0"
version = "1.9.1"

[[deps.ToStruct]]
git-tree-sha1 = "f96bb06d38c94de6b6d0199fe5e73067c6f46edf"
Expand All @@ -465,9 +470,9 @@ uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

[[deps.YAML]]
deps = ["Base64", "Dates", "Printf", "StringEncodings"]
git-tree-sha1 = "3c6e8b9f5cdaaa21340f841653942e1a6b6561e5"
git-tree-sha1 = "dbc7f1c0012a69486af79c8bcdb31be820670ba2"
uuid = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"
version = "0.4.7"
version = "0.4.8"

[[deps.Zlib_jll]]
deps = ["Libdl"]
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BitemporalPostgres"
uuid = "e513cd14-23e6-48df-acf1-d9bc8fa5674b"
authors = ["michaelfliegner <[email protected]>"]
version = "1.5.1"
version = "1.5.2"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
12 changes: 6 additions & 6 deletions bitemporal_testcase.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"using BitemporalPostgres\n",
"\n",
"w1blue = Workflow(type_of_entity=\"TestDummyComponent\",\n",
" tsw_validfrom=ZonedDateTime(2014, 5, 30, 21, 0, 1, 1, tz\"Africa/Porto-Novo\"))\n",
" tsw_validfrom=ZonedDateTime(2014, 5, 30, 21, 0, 1, 1, tz\"UTC\"))\n",
"\n",
"t1 = TestDummyComponent()\n",
"t1r1blue = TestDummyComponentRevision(description=\"blue\")\n",
Expand Down Expand Up @@ -122,7 +122,7 @@
"source": [
"w2yellow = Workflow(type_of_entity=\"TestDummyComponent\",\n",
" ref_history=w1blue.ref_history,\n",
" tsw_validfrom=ZonedDateTime(2015, 5, 30, 21, 0, 1, 1, tz\"Africa/Porto-Novo\"),\n",
" tsw_validfrom=ZonedDateTime(2015, 5, 30, 21, 0, 1, 1, tz\"UTC\"),\n",
")\n",
"t1r2yellow = copy(t1r1blue)\n",
"t1r2yellow.description = \"yellow\"\n",
Expand Down Expand Up @@ -166,7 +166,7 @@
"source": [
"w3redshadow = Workflow(type_of_entity=\"TestDummyComponent\",\n",
" ref_history = w1blue.ref_history,\n",
" tsw_validfrom = ZonedDateTime(2014, 11, 30, 21, 0, 1, 1, tz\"Africa/Porto-Novo\"),\n",
" tsw_validfrom = ZonedDateTime(2014, 11, 30, 21, 0, 1, 1, tz\"UTC\"),\n",
")"
]
},
Expand Down Expand Up @@ -311,8 +311,8 @@
"source": [
"w4PendingRollback = Workflow(type_of_entity=\"TestDummyComponent\",\n",
" ref_history=w1blue.ref_history,\n",
" tsdb_validfrom=now(tz\"Africa/Porto-Novo\"),\n",
" tsw_validfrom=ZonedDateTime(2017, 11, 30, 21, 0, 1, 1, tz\"Africa/Porto-Novo\"),\n",
" tsdb_validfrom=now(tz\"UTC\"),\n",
" tsw_validfrom=ZonedDateTime(2017, 11, 30, 21, 0, 1, 1, tz\"UTC\"),\n",
")\n",
"update_entity!(w4PendingRollback)\n",
"\n",
Expand Down Expand Up @@ -366,7 +366,7 @@
"source": [
"w3redshadow = Workflow(type_of_entity=\"TestDummyComponent\",\n",
" ref_history = w1blue.ref_history,\n",
" tsw_validfrom = ZonedDateTime(2014, 11, 30, 21, 0, 1, 1, tz\"Africa/Porto-Novo\"),\n",
" tsw_validfrom = ZonedDateTime(2014, 11, 30, 21, 0, 1, 1, tz\"UTC\"),\n",
")"
]
},
Expand Down
6 changes: 3 additions & 3 deletions src/BitemporalPostgres.jl
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ function create_entity!(w::Workflow)
ref_version=v.id,
tsworld_validfrom=w.tsw_validfrom,
tsworld_invalidfrom=MaxDate,
tsdb_validfrom=now(tz"Africa/Porto-Novo"),
tsdb_validfrom=now(tz"UTC"),
tsdb_invalidfrom=MaxDate,
)
save!(i)
Expand Down Expand Up @@ -627,7 +627,7 @@ function update_entity!(w::Workflow)
ref_version=v.id,
tsworld_validfrom=w.tsw_validfrom,
tsworld_invalidfrom=MaxDate,
tsdb_validfrom=now(tz"Africa/Porto-Novo"),
tsdb_validfrom=now(tz"UTC"),
tsdb_invalidfrom=MaxDate,
)
save!(i)
Expand Down Expand Up @@ -743,7 +743,7 @@ commit_workflow!(w::Workflow)
"""
function commit_workflow!(w::Workflow)
transaction() do
w.tsdb_validfrom = now(tz"Africa/Porto-Novo")
w.tsdb_validfrom = now(tz"UTC")

uncommitted = find(
ValidityInterval,
Expand Down
4 changes: 2 additions & 2 deletions test/testtests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@testset \"BitemporalPostgres unit tests\" begin\n",
"\n",
" w=Workflow()\n",
" w.tsw_validfrom=ZonedDateTime(2014, 5, 30,21,0,1,1, tz\"Africa/Porto-Novo\")\n",
" w.tsw_validfrom=ZonedDateTime(2014, 5, 30,21,0,1,1, tz\"UTC\")\n",
" SearchLight.Configuration.load() |> SearchLight.connect\n",
" t=TestDummyComponent()\n",
" tr=TestDummyComponentRevision(description=\"blue\")\n",
Expand All @@ -92,7 +92,7 @@
" commit_workflow!(w)\n",
" @test w.is_committed ==1\n",
"\n",
" w2=Workflow(ref_history=w.ref_history,tsw_validfrom=ZonedDateTime(2015, 5, 30,21,0,1,1, tz\"Africa/Porto-Novo\"))\n",
" w2=Workflow(ref_history=w.ref_history,tsw_validfrom=ZonedDateTime(2015, 5, 30,21,0,1,1, tz\"UTC\"))\n",
" tr2=copy(tr)\n",
" tr.description=\"yellow\"\n",
" update_entity!(w2)\n",
Expand Down
Loading

2 comments on commit 884dbe2

@michaelfliegner
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator register

1.5.2 all tz=UTC

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/73640

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.5.2 -m "<description of version>" 884dbe268f4bbed5898471db654f538090c18de2
git push origin v1.5.2

Please sign in to comment.