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

Standarize time install date #14161

Merged
merged 9 commits into from Jun 13, 2023
Merged

Conversation

MiguelazoDS
Copy link
Member

@MiguelazoDS MiguelazoDS commented Jul 6, 2022

Related issue
#13884

Description

This PR converts the timestamp where a package was installed (install_time in sys_programs) into a "%Y/%m/%d %H:%M:%S" format value.

Dod

Expand
  • Scan-build

image

  • UTs

image

Update 03/03/23

Smoke test after rebase

Expand
  • Scan-build

image

  • UTs

image

  • Current state of 4.5 branch

2023-03-03_16-26

  • This implementation

image

Tests

  • Compilation without warnings in every supported platform
    • Windows
  • Review logs syntax and correct language
  • Memory tests for Windows
    • Scan-build report
  • Added unit tests (for new features)

@MiguelazoDS MiguelazoDS force-pushed the dev-13884-standarize-time-installDate branch from 72f3687 to 3ef0521 Compare July 7, 2022 19:43
@MiguelazoDS MiguelazoDS self-assigned this Jul 7, 2022
@MiguelazoDS
Copy link
Member Author

MiguelazoDS commented Jul 7, 2022

DoD

install_time before

image

install_time after

image

Findings

The timestamp for Windows App Store suddenly return a " " string as well as other applications that started to appear after changing the language.

image

@MiguelazoDS MiguelazoDS marked this pull request as ready for review July 7, 2022 20:44
@MiguelazoDS MiguelazoDS force-pushed the dev-13884-standarize-time-installDate branch 3 times, most recently from cf5c02f to 97f3957 Compare July 8, 2022 00:08
src/shared_modules/utils/timeHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
@MiguelazoDS MiguelazoDS force-pushed the dev-13884-standarize-time-installDate branch from cda1765 to 90ff614 Compare July 8, 2022 21:42
Copy link
Member

@pereyra-m pereyra-m left a comment

Choose a reason for hiding this comment

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

Please check:

  • The upgrade scenario, in case we have legacy packages with the old format

src/shared_modules/utils/tests/windowsHelper_test.cpp Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
@MiguelazoDS MiguelazoDS force-pushed the dev-13884-standarize-time-installDate branch 2 times, most recently from 46871bc to f39727f Compare July 11, 2022 19:15
Damian-Mangold
Damian-Mangold previously approved these changes Jul 12, 2022
src/shared_modules/utils/stringHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/timeHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
@MiguelazoDS
Copy link
Member Author

Update 04/08/22 after rebase

Tests

image
image

src/shared_modules/utils/stringHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
pereyra-m
pereyra-m previously approved these changes Sep 6, 2022
Dwordcito
Dwordcito previously approved these changes Sep 12, 2022
pereyra-m
pereyra-m previously approved these changes Sep 12, 2022
Copy link
Member

@pereyra-m pereyra-m left a comment

Choose a reason for hiding this comment

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

LGTM!

@pereyra-m pereyra-m force-pushed the dev-13884-standarize-time-installDate branch 2 times, most recently from 76cb448 to 7fb752c Compare May 9, 2023 13:56
@Dwordcito Dwordcito requested review from Dwordcito and Damian-Mangold and removed request for Damian-Mangold June 1, 2023 13:27
@MiguelazoDS MiguelazoDS force-pushed the dev-13884-standarize-time-installDate branch from 7fb752c to 136828b Compare June 2, 2023 15:09
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
src/shared_modules/utils/windowsHelper.h Outdated Show resolved Hide resolved
pereyra-m
pereyra-m previously approved these changes Jun 12, 2023
@Dwordcito Dwordcito force-pushed the dev-13884-standarize-time-installDate branch from 449c9bf to cdfecec Compare June 13, 2023 17:25
@Dwordcito Dwordcito merged commit 1f5418d into 4.5 Jun 13, 2023
74 checks passed
@Dwordcito Dwordcito deleted the dev-13884-standarize-time-installDate branch June 13, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardize time zone in InstallDate field in Windows package information
7 participants