Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Introduce multiple storage drivers #28

Closed
wants to merge 28 commits into from

Conversation

GrzegorzDrozd
Copy link

@GrzegorzDrozd GrzegorzDrozd commented May 19, 2019

Changes required by: perftools/xhgui#273 (formerly perftools/xhgui#268)

Introduce multiple storage drivers, currently supported are:

  • pdo.sqlite (other drivers need testing)
  • mongo
  • files

Grzegorz Drozd added 7 commits April 14, 2019 22:49
Add support for different serialization options: json, serialize,
igbinary.
Add support to save meta information to separate file - to speed up gui
operations.
Add information how to make output compatible with original gui and
other tools.
Add option to store additional data with profile information such as db
queries (copied from globals).
Fallback to default if config option is missing.
code clean up
config clean up
remove some warnings/notices
composer.json Outdated Show resolved Hide resolved
external/header.php Outdated Show resolved Hide resolved
src/Xhgui/Util.php Outdated Show resolved Hide resolved
@GrzegorzDrozd
Copy link
Author

@markstory Ready for merge. But if I change package names from grzegorzdrozd/xhgui|grzegorzdrozd/xhgui-collector it will not build - unit tests will fail. Please review and when you are happy I will change them back to default, ok?

@glensc
Copy link
Contributor

glensc commented Aug 19, 2019

@GrzegorzDrozd could you please rebase to squash commits to a minimum. I can do the review as well.

composer.json Outdated Show resolved Hide resolved
external/header.php Outdated Show resolved Hide resolved
src/Xhgui/Saver.php Outdated Show resolved Hide resolved
src/Xhgui/Saver.php Outdated Show resolved Hide resolved
src/Xhgui/Saver/File.php Outdated Show resolved Hide resolved
src/Xhgui/Saver/File.php Outdated Show resolved Hide resolved
Grzegorz Drozd added 2 commits August 21, 2019 17:48
- revert short array syntax
- fix typos
- rename PDO class to Pdo
- change session existence check
- fix version compare
config/config.default.php Outdated Show resolved Hide resolved
config/config.default.php Outdated Show resolved Hide resolved
Grzegorz Drozd added 4 commits September 11, 2019 22:53
- remove unused config values
- remove unnecessary complex logic in filename generation
- remove unnecessary code formatting
- make sure no array is using short syntax
}

// try php 7+ function.
if (function_exists('random_bytes')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove the function_exists check. and all the compatibility layer done below. the function is provided by php engine or the random-compat shim.

I wrote about this elsewhere in this PR.

@glensc
Copy link
Contributor

glensc commented Apr 18, 2020

What is this different from #11? as it already added a PDO adapter?

@glensc
Copy link
Contributor

glensc commented Jun 18, 2020

this is not suitable for merge or review. submit changes in smaller chunks and per feature.

currently, it seems to branched off before #11 was submitted, and impossible at the current state.

@glensc glensc closed this Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants