natCP icon indicating copy to clipboard operation
natCP copied to clipboard

Search Function Not Implemented

Open FlamesRunner opened this issue 7 years ago • 6 comments

The search function within the administrator panel has not yet been implemented. If you'd like to have a try at it, fork the project and make the appropriate changes, then submit a pull request.

It should be simple; all you need to do is add a section to display search results (e.g foreach rows), and implement the database query.

You can easily access the database object with $dbh->(pdo functions).

FlamesRunner avatar Oct 07 '17 03:10 FlamesRunner

I would like to work on this. please, assign the issue to me

hydeenoble avatar Oct 07 '17 18:10 hydeenoble

It's all yours, but I cannot assign the issue to you without giving full access. Sorry about that!

FlamesRunner avatar Oct 08 '17 01:10 FlamesRunner

Is this a search just for the virtual servers? I have implemented a js search on the users in the refactor branch (its more of a filter) which will scale to a certain degree, I can test how far, if it seems tidy enough I will implement something similar when I refactor the server section

mikebywater avatar Oct 22 '17 22:10 mikebywater

Yes. The initial query that was used was 'SELECT * FROM virtualservers where v4addresses LIKE (search query);'.

However, it was not reimplemented from the first version.

FlamesRunner avatar Oct 22 '17 22:10 FlamesRunner

The issue is that the panel uses SSH connections -- and it's rather inefficient. In the next week or so, I will be reimplementing the slave node system to host a web API so that a simple cURL request will do it.

FlamesRunner avatar Oct 22 '17 22:10 FlamesRunner

I am mentioning this as it will bottleneck the searching process.

FlamesRunner avatar Oct 22 '17 22:10 FlamesRunner