your input on how to format filtering rules for a net button

1 view
Skip to first unread message

pedrobandim

unread,
Apr 8, 2010, 2:21:33 PM4/8/10
to Firebug
Hi,

I'm trying to add a new button to the fbNetButtons with the idea of
filtering the net request rows based on some rules. I'd like your
input on how to format these rules. The rules should be either loaded
from an external file (file or URL) or added from the UI. I know
you're working on the Net Panel - Advanced Filtering functionality but
until that comes...

When clicking on this button, the net request table should show only
rows with specific hostnames (I'm using CSS as in your fileCategory
filter). Each website's hostname will have a list of hostnames for
which rows should be shown (I will need a mapping between the
website's hostname - possibly regexp - and associated net request
hostnames). When clicking on the rows, there'll be an extra tab with
info specific to that hostname (will need a mapping between hostnames
and the info to be displayed).

Do you recommend any specific format? Will JSON do just fine?

Thanks,
Pedro

Honza (Jan Odvarko)

unread,
Apr 9, 2010, 3:05:23 AM4/9/10
to Firebug
> I'm trying to add a new button to the fbNetButtons with the idea of
> filtering the net request rows based on some rules. I'd like your
> input on how to format these rules. The rules should be either loaded
> from an external file (file or URL) or added from the UI. I know
> you're working on the Net Panel - Advanced Filtering functionality but
> until that comes...

I guess you are talking about:
http://www.malditocrc.com.ar/peregrino/lab/firebug/advfilters/
extension that is made by Hernán.

> When clicking on this button, the net request table should show only
> rows with specific hostnames (I'm using CSS as in your fileCategory
> filter). Each website's hostname will have a list of hostnames for
> which rows should be shown (I will need a mapping between the
> website's hostname - possibly regexp - and associated net request
> hostnames). When clicking on the rows, there'll be an extra tab with
> info specific to that hostname (will need a mapping between hostnames
> and the info to be displayed).
> Do you recommend any specific format? Will JSON do just fine?

I have personally good experience with storing data as JSON. It easy
to
manipulate using built in JSON support (JSON.parse + JSON.stringify)
and
it nicely fits into the Javascript world.

Honza

pedrobandim

unread,
Apr 9, 2010, 4:41:02 AM4/9/10
to Firebug
On Apr 9, 9:05 am, "Honza (Jan Odvarko)" <odva...@gmail.com> wrote:

> I guess you are talking about:http://www.malditocrc.com.ar/peregrino/lab/firebug/advfilters/
> extension that is made by Hernán.

Didn't know there was a release already. Perhaps someone from the FB
team could look into updating the page at
http://groups.google.com/group/firebug-working-group/web/net-panel---advanced-filtering?

> I have personally good experience with storing data as JSON. It easy
> to
> manipulate using built in JSON support (JSON.parse + JSON.stringify)
> and
> it nicely fits into the Javascript world.

Thanks for the input.

Pedro

Honza (Jan Odvarko)

unread,
Apr 9, 2010, 4:49:40 AM4/9/10
to Firebug
> Didn't know there was a release already.

I quite like all the ideas related to advanced filtering of the Net
panel. Not sure in which state the existing extension is, but it would
be great if we can somehow cooperate and incorporate further ideas
(e.g. I am willing to provide better Firebug APIs anywhere helpful).

> Perhaps someone from the FB
> team could look into updating the page athttp://groups.google.com/group/firebug-

> working-group/web/net-panel---...
You are right, could you please report a new bug for this so, it's not
forgotten here in the noise?

Thanks!
Honza

pedrobandim

unread,
Apr 9, 2010, 5:14:48 AM4/9/10
to Firebug
> I quite like all the ideas related to advanced filtering of the Net
> panel. Not sure in which state the existing extension is, but it would
> be great if we can somehow cooperate and incorporate further ideas
> (e.g. I am willing to provide better Firebug APIs anywhere helpful).

I'll post a message here once I have something working. On another
note, what's the recommended way to show a preferences window for
Firebug extensions? I need to present users with a UI that would allow
them to fetch the rules and if necessary add/remove/update them.

> You are right, could you please report a new bug for this so, it's not
> forgotten here in the noise?

Done, issue 2992.

Pedro

Hernan Rodriguez Colmeiro

unread,
Apr 9, 2010, 9:41:20 AM4/9/10
to fir...@googlegroups.com
On Fri, Apr 9, 2010 at 06:14, pedrobandim <pedro...@gmail.com> wrote:
> I quite like all the ideas related to advanced filtering of the Net
> panel. Not sure in which state the existing extension is, but it would
> be great if we can somehow cooperate and incorporate further ideas
> (e.g. I am willing to provide better Firebug APIs anywhere helpful).

Hey!

Great to know there's someone willing to help on this side. I'm more than welcome to join forces with someone who want's to help =D.
Right now the development of the extension is in a hiatus because I had lot of other stuff to pay attention being a jetpack ambassador is the most time consuming, but also work and university ;).

Pedro, if you want we can talk about how to join our work/ideas, duplication in this field is just silly, better do a single rociking extension than two normal ones!

Hernán
Reply all
Reply to author
Forward
0 new messages