Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » ocular - scratch forum info
- breakfast_for_dinner
-
1000+ posts
ocular - scratch forum info
weirdi didn't touch any of those(#3693)did you do this? i don't think i remember this
nobody’s actually found all of my visible forum changes yet - wonder if you can!

Last edited by breakfast_for_dinner (July 10, 2024 23:40:58)
- Jeffalo
-
1000+ posts
ocular - scratch forum info
alrighty that's enough scratch forums, back to working on ocular… i fixed user pages, topic pages, and post pages.
i'm working on an advanced search feature.
i'm working on an advanced search feature.
- Jeffalo
-
1000+ posts
ocular - scratch forum info
introducing: search filtering!
you can now write filters to make some very specific queries, eg. posts by either Jeffalo or DatOneLefty that were edited by scratch team members.

try it now, and let me know what you think https://ocular.jeffalo.net/search
you can now write filters to make some very specific queries, eg. posts by either Jeffalo or DatOneLefty that were edited by scratch team members.

try it now, and let me know what you think https://ocular.jeffalo.net/search
Last edited by Jeffalo (Aug. 5, 2024 21:58:56)
- o97doge
-
500+ posts
ocular - scratch forum info
(#3704)Now I can see posts written by ceebee that were last edited by Paddle2See.
introducing: search filtering!
you can now write filters to make some very specific queries, eg. posts by either Jeffalo or DatOneLefty that were edited by scratch team members.
try it now, and let me know what you think https://ocular.jeffalo.net/search
- han614698
-
1000+ posts
ocular - scratch forum info
https://ocular.jeffalo.net/searchIt's cool, but I'm curious about two things: try it now, and let me know what you think
- Is there any way to just type the filter but without a search query? Like, for example I could just show all posts that were “last edited by Paddle2See” without having to type any text?
- Is there any way for me to show all of my posts that were edited by the ST in general (not a specific user)?
- gilbert_given_189
-
1000+ posts
ocular - scratch forum info
*sniffs* smells like SQL conditions, let me see if I can inject it… introducing: search filtering!
you can now write filters to make some very specific queries, eg. posts by either Jeffalo or DatOneLefty that were edited by scratch team members.
try it now, and let me know what you think https://ocular.jeffalo.net/search
(figures out the error message from entering a semicolon)
oh, it has a filter on it. you beat me this time jefallo
- SpyCoderX
-
1000+ posts
ocular - scratch forum info
Literally looks like SQL conditions lol*sniffs* smells like SQL conditions, let me see if I can inject it… introducing: search filtering!
you can now write filters to make some very specific queries, eg. posts by either Jeffalo or DatOneLefty that were edited by scratch team members.
try it now, and let me know what you think https://ocular.jeffalo.net/search
(figures out the error message from entering a semicolon)
oh, it has a filter on it. you beat me this time jefallo
- Maximouse
-
1000+ posts
ocular - scratch forum info
I think it uses Literally looks like SQL conditions lolthis filter syntax. The list of supported operations is very similar:


- Maximouse
-
1000+ posts
ocular - scratch forum info
Very useful! I think I found a bug though: typing anything into the filter input clears the search input. Two features I used often in the old version that are currently missing are the ability to filter by status/rank (Scratcher/ST) and search for keywords in the topic title. introducing: search filtering!
you can now write filters to make some very specific queries, eg. posts by either Jeffalo or DatOneLefty that were edited by scratch team members.
[image]
try it now, and let me know what you think https://ocular.jeffalo.net/search
What does “quotes” mean? It's on the list of filterable attributes but it seems to always be an empty array.
- Maximouse
-
1000+ posts
ocular - scratch forum info
You can type a space into the “search query” field. Is there any way to just type the filter but without a search query? Like, for example I could just show all posts that were “last edited by Paddle2See” without having to type any text?
- Maximouse
-
1000+ posts
ocular - scratch forum info
This seems to work: Is there any way for me to show all of my posts that were edited by the ST in general (not a specific user)?
username = "han614698" AND last_edited_by IS NOT NULL AND NOT last_edited_by = "han614698"
Last edited by Maximouse (Aug. 6, 2024 19:50:44)
- Jeffalo
-
1000+ posts
ocular - scratch forum info
yup! just searching for a wildcard asterisk (*) seems to work fine! It's cool, but I'm curious about two things:
Is there any way to just type the filter but without a search query? Like, for example I could just show all posts that were “last edited by Paddle2See” without having to type any text?
yup! Is there any way for me to show all of my posts that were edited by the ST in general (not a specific user)?does this work?
- davidtheplatform
-
500+ posts
ocular - scratch forum info
Where does this get its data from?
- Jeffalo
-
1000+ posts
ocular - scratch forum info
What does “quotes” mean? It's on the list of filterable attributes but it seems to always be an empty array.
absolutely no clue

- CST1229
-
1000+ posts
ocular - scratch forum info
(#3714)Still ScratchDB, there's a newer version now.
Where does this get its data from?
(https://scratch-mit-edu.ezproxyberklee.flo.org/users/Jeffalo/#comments-340332981)
there’s a new version of scratchdb that some parts of ocular use. when i have time, i’ll fix up the rest of ocular to use it too. there’s more information on the homepage of ocular search i think
- Jeffalo
-
1000+ posts
ocular - scratch forum info
thank you! looks like that's some weird vue 2 reactivity behavior. the legacy ocular codebase is a bit of a mess unfortunately, does anyone know how to fix this? Very useful! I think I found a bug though: typing anything into the filter input clears the search input
- Pufferfish_Test
-
500+ posts
ocular - scratch forum info
(#3717)yes
does anyone know how to fix this?
- Pufferfish_Test
-
500+ posts
ocular - scratch forum info
(#3718)having said this, npm decided not to work so I can't test my hypothesis. I think if you get rid of the search: blah blah blah in the data bit of the thingy, and then have a function in the thingy like created(){ this.search= blah blh blah }. apologies for my inaccurate vue terminology. this may not work but if it does I expect a fee(#3717)yes
does anyone know how to fix this?
- Maximouse
-
1000+ posts
ocular - scratch forum info
but if it does I expect a feeIt seems to work. having said this, npm decided not to work so I can't test my hypothesis. I think if you get rid of the search: blah blah blah in the data bit of the thingy, and then have a function in the thingy like created(){ this.search= blah blh blah }. apologies for my inaccurate vue terminology. this may not work
Changing :value=“search” to v-model=“search” also fixes the bug, but it introduces a new one: typing into the search input if the filter is visible but empty hides the filter.
- Discussion Forums
- » Advanced Topics
-
» ocular - scratch forum info