Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
197
Issues
197
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
6e4e0dc7
Commit
6e4e0dc7
authored
Jul 28, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API FIX] search docs ok
parent
9b94b47f
Pipeline
#991
failed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
+5
-8
Search.hs
src/Gargantext/API/Search.hs
+2
-2
Default.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
+0
-3
Document.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Document.hs
+2
-2
Node.hs
src/Gargantext/Database/Admin/Types/Node.hs
+1
-1
No files found.
src/Gargantext/API/Search.hs
View file @
6e4e0dc7
...
...
@@ -220,7 +220,7 @@ instance FromJSON HyperdataRow
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
,
fieldLabelModifier
=
unCapitalize
.
dropPrefix
"_hr_"
,
omitNothingFields
=
Tru
e
,
omitNothingFields
=
Fals
e
}
)
...
...
@@ -230,7 +230,7 @@ instance ToJSON HyperdataRow
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
,
fieldLabelModifier
=
unCapitalize
.
dropPrefix
"_hr_"
,
omitNothingFields
=
Tru
e
,
omitNothingFields
=
Fals
e
}
)
...
...
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
View file @
6e4e0dc7
...
...
@@ -109,6 +109,3 @@ defaultHyperdata NodeDashboard = DefaultDashboard defaultHyperdataDashboard
defaultHyperdata
NodeFrameWrite
=
DefaultFrameWrite
defaultHyperdataFrame
defaultHyperdata
NodeFrameCalc
=
DefaultFrameCalc
defaultHyperdataFrame
src/Gargantext/Database/Admin/Types/Hyperdata/Document.hs
View file @
6e4e0dc7
...
...
@@ -145,7 +145,7 @@ instance FromJSON HyperdataDocument
where
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
,
fieldLabelModifier
=
unCapitalize
.
dropPrefix
"_hd"
,
fieldLabelModifier
=
unCapitalize
.
dropPrefix
"_hd
_
"
,
omitNothingFields
=
True
}
)
...
...
@@ -154,7 +154,7 @@ instance ToJSON HyperdataDocument
where
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
,
fieldLabelModifier
=
unCapitalize
.
dropPrefix
"_hd"
,
fieldLabelModifier
=
unCapitalize
.
dropPrefix
"_hd
_
"
,
omitNothingFields
=
True
}
)
...
...
src/Gargantext/Database/Admin/Types/Node.hs
View file @
6e4e0dc7
...
...
@@ -57,7 +57,7 @@ type MasterUserId = UserId
type
Node
json
=
NodePoly
NodeId
NodeTypeId
UserId
(
Maybe
ParentId
)
NodeName
UTCTime
json
-- | NodeSearch (queries)
type
NodeSearch
json
=
NodePolySearch
NodeId
NodeTypeId
UserId
(
Maybe
ParentId
)
NodeName
UTCTime
json
(
Maybe
TSVector
)
--
type NodeSearch json = NodePolySearch NodeId NodeTypeId UserId (Maybe ParentId) NodeName UTCTime json (Maybe TSVector)
------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment