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

Multiple storage drivers. #273

Closed
wants to merge 64 commits into from
Closed

Conversation

GrzegorzDrozd
Copy link

@GrzegorzDrozd GrzegorzDrozd commented Aug 4, 2019

Introduce multiple storage drivers, currently supported are:

  • pdo.sqlite
  • pdo.mysql
  • pdo.postgresql
  • mongo
  • files

All current Unit tests are updated and all in green. I did extensive testing and everything except custom views is working ok. Custom views will have to be rethink because it is impossible to support them with storage different than mongo in the current form.

This also requires collector changes:

Grzegorz Drozd added 30 commits May 19, 2019 18:15
…mongo.

New classes for storage
New class for filtering
New class for watched function storage
template updates
other changes.

Initial commit.
Known issues:
- unit tests are not working
- javascript date time picker does not work
- custom view does not work
- search filters should expose more fields
# Conflicts:
#	config/config.default.php
#	src/Xhgui/Controller/Run.php
#	src/Xhgui/Controller/Watch.php
#	src/Xhgui/Controller/Waterfall.php
#	src/Xhgui/Searcher/Mongo.php
#	src/Xhgui/ServiceContainer.php
#	src/Xhgui/WatchFunctions.php
Merge fixes
RunController tests
Missing run controller tests.
Changing some code to work better with testing.
fix common test class
Change filename generation
Add different db schema files
Fix import
Make custom view avalible only for mongodb for now.
Add missing tests for import controller.
Allow argument in url to be only date
Grzegorz Drozd added 9 commits August 4, 2019 15:37
Postgresql cannot easily cast jsonb to text, use native search capabilities of both mysql and pg.
For pg versions lower than 5.6 it can be disabled setting variable in config.
Fix missing cookie and ip filtering.
@GrzegorzDrozd
Copy link
Author

Hi @markstory, this code is ready for review.

@glensc
Copy link
Contributor

glensc commented Aug 19, 2019

@GrzegorzDrozd could you please rebase (not merge) the changes against origin/master and consider squashing commits to a minimum. I can do the review as well.

@GrzegorzDrozd
Copy link
Author

@glensc I will try to do that tonight but I am not used to do rebases - I hope I will not break anything.

@GrzegorzDrozd
Copy link
Author

I have some computer issues and I am waiting for a new machine. I will get back to this PR asap.

Grzegorz Drozd added 2 commits September 11, 2019 23:20
- make sure no array uses short syntax
- rename PDO to Pdo
- remove all unnecessary code changes and formatting.
@GrzegorzDrozd
Copy link
Author

@GrzegorzDrozd could you please rebase (not merge) the changes against origin/master and consider squashing commits to a minimum. I can do the review as well.

Hi. I have tried to do rebase couple of times but I don't know how to do that properly. Code never worked after that. I removed all unnecessary code changes from my branch. I can do following: make new clean branch with just current state of the code, will that work ?

@glensc
Copy link
Contributor

glensc commented Sep 13, 2019

You can re-create the branch, but lets not create another PR, as this already contains the review comments.

Just important is to push your new branch to the branch this PR is based against: GrzegorzDrozd:master

And need git push -f to overwrite commits.

@glensc
Copy link
Contributor

glensc commented Apr 16, 2020

@GrzegorzDrozd do you have a checklist whats holding to get this merged?

Really hate to lose huge work like this because its acceptance got stalled.

I'm thinking maybe just go with one squash merge commit, i.e forget the beautiful git history

$this->_template = '';

$readConfig = $this->app->container->get('settings');
$saveHandlerConfig = $this->app->container->get('settings');
Copy link
Contributor

Choose a reason for hiding this comment

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

$readConfig and $saveHandlerConfig are identical

@alfredbez
Copy link

This looks very useful, maybe I find some time to help here.

@alfredbez
Copy link

Unfortunately, @GrzegorzDrozd has no interest in working further on this PR and decided to maintain his own version in this Github Org: https://github.com/phpperftools/

@GrzegorzDrozd is it ok for you if I take this over?

@GrzegorzDrozd
Copy link
Author

Unfortunately, @GrzegorzDrozd has no interest in working further on this PR and decided to maintain his own version in this Github Org: https://github.com/phpperftools/

@GrzegorzDrozd is it ok for you if I take this over?

Of course :) Not a problem for me :) Go ahead.

@glensc
Copy link
Contributor

glensc commented Jun 18, 2020

I think @GrzegorzDrozd work is based on older version and has conflicting changes now that #244 is merged.

see:

but as this PR was made from "master" branch, the contents of this PR and what was intended to be submitted is unknown.


I personally think that all adapters other than upload should be deprecated
so that from the application you only need some form of HTTP client to submit data to xhgui server. and then it really doesn't matter what xgui uses internally to store data.

I also started new project for the client, trying to cleanup API needed at client side.

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants