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
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
14
Merge Requests
14
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
4d5dbd0b
Commit
4d5dbd0b
authored
Apr 27, 2022
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ihaskell] remove Codebook since NodeFrameNotebook does the same
parent
edc3a258
Pipeline
#2763
failed with stage
in 50 minutes and 11 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
4 additions
and
29 deletions
+4
-29
gargantext.cabal
gargantext.cabal
+0
-1
Node.hs
src/Gargantext/Database/Action/Node.hs
+3
-1
Config.hs
src/Gargantext/Database/Admin/Config.hs
+0
-2
Hyperdata.hs
src/Gargantext/Database/Admin/Types/Hyperdata.hs
+0
-2
Codebook.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Codebook.hs
+0
-14
Default.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
+0
-6
Node.hs
src/Gargantext/Database/Admin/Types/Node.hs
+0
-3
stack.yaml
stack.yaml
+1
-0
No files found.
gargantext.cabal
View file @
4d5dbd0b
...
...
@@ -248,7 +248,6 @@ library
Gargantext.Database.Admin.Trigger.Contexts
Gargantext.Database.Admin.Trigger.NodesContexts
Gargantext.Database.Admin.Types.Hyperdata.Any
Gargantext.Database.Admin.Types.Hyperdata.Codebook
Gargantext.Database.Admin.Types.Hyperdata.Contact
Gargantext.Database.Admin.Types.Hyperdata.Corpus
Gargantext.Database.Admin.Types.Hyperdata.CorpusField
...
...
src/Gargantext/Database/Action/Node.hs
View file @
4d5dbd0b
...
...
@@ -86,7 +86,9 @@ mkNodeWithParent_ConfigureHyperdata NodeFrameVisio (Just i) uId name =
mkNodeWithParent_ConfigureHyperdata'
NodeFrameVisio
(
Just
i
)
uId
name
mkNodeWithParent_ConfigureHyperdata
NodeFrameNotebook
(
Just
i
)
uId
name
=
insertNode
NodeFrameNotebook
(
Just
"Notebook"
)
(
Just
$
DefaultFrameCode
$
HyperdataFrame
"Codebook"
name
)
i
uId
insertNode
NodeFrameNotebook
(
Just
"Notebook"
)
(
Just
$
DefaultFrameCode
$
HyperdataFrame
{
_hf_base
=
"Codebook"
,
_hf_frame_id
=
name
})
i
uId
mkNodeWithParent_ConfigureHyperdata
_
_
_
_
=
nodeError
NotImplYet
...
...
src/Gargantext/Database/Admin/Config.hs
View file @
4d5dbd0b
...
...
@@ -66,8 +66,6 @@ nodeTypeId n =
NodeListCooc
->
50
NodeModel
->
52
NodeCodebook
->
6
---- Scores
-- NodeOccurrences -> 10
NodeGraph
->
9
...
...
src/Gargantext/Database/Admin/Types/Hyperdata.hs
View file @
4d5dbd0b
...
...
@@ -14,7 +14,6 @@ Portability : POSIX
module
Gargantext.Database.Admin.Types.Hyperdata
(
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Any
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Contact
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Codebook
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Corpus
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Dashboard
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Document
...
...
@@ -33,7 +32,6 @@ module Gargantext.Database.Admin.Types.Hyperdata
import
Gargantext.Database.Admin.Types.Hyperdata.Any
import
Gargantext.Database.Admin.Types.Hyperdata.Contact
import
Gargantext.Database.Admin.Types.Hyperdata.Codebook
import
Gargantext.Database.Admin.Types.Hyperdata.Corpus
import
Gargantext.Database.Admin.Types.Hyperdata.Dashboard
import
Gargantext.Database.Admin.Types.Hyperdata.Document
...
...
src/Gargantext/Database/Admin/Types/Hyperdata/Codebook.hs
deleted
100644 → 0
View file @
edc3a258
{-# LANGUAGE TemplateHaskell #-}
module
Gargantext.Database.Admin.Types.Hyperdata.Codebook
where
import
Gargantext.Database.Admin.Types.Hyperdata.Prelude
data
HyperdataCodebook
=
HyperdataCodebook
{
_hco_name
::
!
Text
}
defaultHyperdataCodebook
::
HyperdataCodebook
defaultHyperdataCodebook
=
HyperdataCodebook
""
$
(
deriveJSON
(
unPrefix
"_hco_"
)
''
H
yperdataCodebook
)
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
View file @
4d5dbd0b
...
...
@@ -57,8 +57,6 @@ data DefaultHyperdata =
|
DefaultFile
HyperdataFile
|
DefaultCodebook
HyperdataCodebook
instance
Hyperdata
DefaultHyperdata
instance
ToJSON
DefaultHyperdata
where
...
...
@@ -92,8 +90,6 @@ instance ToJSON DefaultHyperdata where
toJSON
(
DefaultFile
x
)
=
toJSON
x
toJSON
(
DefaultCodebook
x
)
=
toJSON
x
defaultHyperdata
::
NodeType
->
DefaultHyperdata
defaultHyperdata
NodeUser
=
DefaultUser
defaultHyperdataUser
...
...
@@ -125,5 +121,3 @@ defaultHyperdata NodeFrameVisio = DefaultFrameVisio defaultHyperdataFrame
defaultHyperdata
NodeFrameNotebook
=
DefaultFrameCalc
defaultHyperdataFrame
defaultHyperdata
NodeFile
=
DefaultFile
defaultHyperdataFile
defaultHyperdata
NodeCodebook
=
DefaultCodebook
defaultHyperdataCodebook
src/Gargantext/Database/Admin/Types/Node.hs
View file @
4d5dbd0b
...
...
@@ -353,7 +353,6 @@ data NodeType = NodeUser
-- Optional Nodes
|
NodeFrameWrite
|
NodeFrameCalc
|
NodeFrameVisio
|
NodeFrameNotebook
|
NodeFile
|
NodeCodebook
deriving
(
Show
,
Read
,
Eq
,
Generic
,
Bounded
,
Enum
)
...
...
@@ -394,8 +393,6 @@ defaultName NodeFrameNotebook = "Code"
defaultName
NodeFile
=
"File"
defaultName
NodeCodebook
=
"Codebook"
instance
FromJSON
NodeType
instance
ToJSON
NodeType
...
...
stack.yaml
View file @
4d5dbd0b
...
...
@@ -5,6 +5,7 @@ extra-package-dbs: []
skip-ghc-check
:
true
packages
:
-
.
#- 'deps/gargantext-graph'
#- 'deps/haskell-opaleye'
...
...
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