Skip to content

Commit

Permalink
Enable dataservices search (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaudDauce authored Sep 18, 2024
1 parent b8e3f1c commit d1c9993
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Current (in progress)

- Nothing yet
- Enable basic search on dataservices [#3148](https://github.com/opendatateam/udata/pull/3148)

## 9.2.0 (2024-09-13)

Expand Down
4 changes: 2 additions & 2 deletions udata/core/dataservices/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class HarvestMetadata(db.EmbeddedDocument):
archived_at = field(db.DateTimeField())


@generate_fields()
@generate_fields(searchable=True)
class Dataservice(WithMetrics, Owned, db.Document):
meta = {
"indexes": [
Expand Down Expand Up @@ -130,7 +130,7 @@ class Dataservice(WithMetrics, Owned, db.Document):
authorization_request_url = field(db.URLField())
availability = field(db.FloatField(min=0, max=100), example="99.99")
rate_limiting = field(db.StringField())
is_restricted = field(db.BooleanField())
is_restricted = field(db.BooleanField(), filterable={})
has_token = field(db.BooleanField())
format = field(db.StringField(choices=DATASERVICE_FORMATS))

Expand Down

0 comments on commit d1c9993

Please sign in to comment.