goggles-quickstart icon indicating copy to clipboard operation
goggles-quickstart copied to clipboard

`version` identifier as metadata field

Open devidw opened this issue 1 year ago • 2 comments

! version: 1.0.0

Could be a helpful addition to the default goggle metadata fields.

Used for what?

  • To track and identify different versions of a goggle
  • Perhaps Brave Search could regularly check submitted goggle URLs, if a version change is identified, the goggle is automatically refreshed without the need of resubmitting it on every update by the user
    • This is how https://userstyles.world/ does it for user stylesheets

devidw avatar Sep 08 '22 18:09 devidw

Hi @devidw,

Thanks for the great feedback. As far as I understand, the version could be an indication to the users of a Goggle that they are using a newer version? This is implicitly done using a "last fetched" timestamp as well as a hash of the content (internally).

Regarding the second idea of re-fetching, it's something that we have considered at some point but currently did not implement, preferring the simpler alternative of having explicit upload from maintainers (this can be useful if you wanna push a few changes to your hosted Goggle, but do not necessarily feel comfortable pushing it to all users via Brave Search).

I hope that helps,

remusao avatar Sep 08 '22 19:09 remusao

Hey @remusao

Thanks for your comment

As far as I understand, the version could be an indication to the users of a Goggle that they are using a newer version?

For example, yes.

Or, if there are breaking changes inside a goggle, goggle subscribers can clearly decide to go with a newer version or not.

But taking into account that goggles are hosted on completely version controlled repos, perhaps that's obsolete, since users would be able to submit or subscribe to any other version from any URL in the GIT history.

Okay, got it, cross that out. :D


this can be useful if you wanna push a few changes to your hosted Goggle, but do not necessarily feel comfortable pushing it to all users via Brave Search

Yes, that's a good point.

The way I was thinking about it was that the search engine would only pull the changes when it identifies a change in the version meta data field.

Therefore, committing updates to the host without bumping the version number should do nothing.

The search engine would only update its reference when there is a change to the currently stored/referenced one.

This would assume that the search engine would store the version number along with the URL in its databases.

devidw avatar Sep 08 '22 19:09 devidw