Coder Social home page Coder Social logo

Comments (9)

nicodemus avatar nicodemus commented on June 8, 2024

I have experienced the same issue, with 'source_ip' being included in the WHERE clause, with no value being specified in the GUI. Returning to the search panel and clicking 'Clear' seems to fix it.

from homer-ui.

lmangani avatar lmangani commented on June 8, 2024

could either of you confirm if this is still an issue with the latest UI/API git version? Thanks

from homer-ui.

mmonka avatar mmonka commented on June 8, 2024

We tested this behavior with a version from july, 26th (d61773c) today.
Bug still exists.

from homer-ui.

lmangani avatar lmangani commented on June 8, 2024

Thanks for the update, will review. Are you loading the session with any URL parameters?

from homer-ui.

adubovikov avatar adubovikov commented on June 8, 2024

@mmonka can you please provide the JSON request ?

from homer-ui.

boettner avatar boettner commented on June 8, 2024

I removed the field "protocol" from the search form, but its former value is still included in the search request:

{"id":"search","param":{"to_user":"4921163555533","from_user":"4921163555533","orand":true,"proto":"tcp","limit":"1000"}}

This gets posted to: /api/v1/profile/store/search

We also saw that search values are stored in the settings database:

mysql> select * from setting where uid = 3054 and param_name = "search";
+----+------+------------+------------------------------------------------------------------------------------------------+---------------------+---------------------+------------+--------+
| id | uid  | param_name | param_value                                                                                    | valid_param_from    | valid_param_to      | param_prio | active |
+----+------+------------+------------------------------------------------------------------------------------------------+---------------------+---------------------+------------+--------+
|  7 | 3054 | search     | {"to_user":"4921163555533","from_user":"4921163555533","orand":true,"proto":"tcp","limit":"1000"} | 2012-01-01 00:00:00 | 2032-12-01 00:00:00 |         10 |      1 |
+----+------+------------+------------------------------------------------------------------------------------------------+---------------------+---------------------+------------+--------+

We would expect saved values are only considered when the form field is actually visible in the search form :-)

Hope that helps!

from homer-ui.

adubovikov avatar adubovikov commented on June 8, 2024

@boettner in the UI you have one global search object and once you created in the "FULL Search page" it will be available also for all "Quick search" widgets... If you want to clean up it, just press "Clear" and it should be done

from homer-ui.

boettner avatar boettner commented on June 8, 2024

Technically clear to me, but (our) users aren't expecting this behaviour.

Case:
Someone changes the "global search form" dashboard and removes a field. All other users (with pre-filled values) won't find any packets. Sure, they could press "Clear" but that's IMHO not obvious.

But I see the point. Maybe this is more an enhancement. Maybe we'll change this someday and make a pull request.

from homer-ui.

adubovikov avatar adubovikov commented on June 8, 2024

the best way IMHO, clean up the object and populate with current variables.
I will look on it later.

On 24 August 2016 at 09:58, Jonas [email protected] wrote:

Technically clear to me, but (our) users aren't expecting this behaviour.

Case:
Someone changes the "global search form" dashboard and removes a field.
All other users (with pre-filled values) won't find any packets. Sure, they
could press "Clear" but that's IMHO not obvious.

But I see the point. Maybe this is more an enhancement. Maybe we'll change
this someday and make a pull request.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#57 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AETdJQ7ckSCsei70YSdbIBzEIOxCRmKPks5qi_mwgaJpZM4HU3yq
.

from homer-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.