Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ecolyo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
Ecolyo
Commits
afdedfbc
Commit
afdedfbc
authored
1 year ago
by
Bastien DUMONT
Browse files
Options
Downloads
Patches
Plain Diff
comments on script init
parent
b4474245
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!1154
feat: GRDF consent email
,
!1137
feat(grdf)!: update error messages
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/createConnections.js
+2
-0
2 additions, 0 deletions
scripts/createConnections.js
src/components/Konnector/KonnectorViewerCard.tsx
+8
-8
8 additions, 8 deletions
src/components/Konnector/KonnectorViewerCard.tsx
with
10 additions
and
8 deletions
scripts/createConnections.js
+
2
−
0
View file @
afdedfbc
...
@@ -30,6 +30,7 @@ const dataEnedisAccount = JSON.stringify({
...
@@ -30,6 +30,7 @@ const dataEnedisAccount = JSON.stringify({
state
:
null
,
state
:
null
,
})
})
// TODO update this to have auth field ?
const
dataGrdfAccount
=
JSON
.
stringify
({
const
dataGrdfAccount
=
JSON
.
stringify
({
account_type
:
'
grdfgrandlyon
'
,
account_type
:
'
grdfgrandlyon
'
,
auth
:
{
auth
:
{
...
@@ -37,6 +38,7 @@ const dataGrdfAccount = JSON.stringify({
...
@@ -37,6 +38,7 @@ const dataGrdfAccount = JSON.stringify({
'
bmFjbMKrNCS+4Liakxdu+xNu9I3sSyvda8iAp0o3U3OAymbIeoLhLtxPdsa+3mu/8yTnDudBcJo=
'
,
'
bmFjbMKrNCS+4Liakxdu+xNu9I3sSyvda8iAp0o3U3OAymbIeoLhLtxPdsa+3mu/8yTnDudBcJo=
'
,
login
:
'
test
'
,
login
:
'
test
'
,
},
},
// const this id
id
:
'
89e68b8450cee09fe2f077610901094d
'
,
id
:
'
89e68b8450cee09fe2f077610901094d
'
,
identifier
:
'
login
'
,
identifier
:
'
login
'
,
state
:
null
,
state
:
null
,
...
...
This diff is collapsed.
Click to expand it.
src/components/Konnector/KonnectorViewerCard.tsx
+
8
−
8
View file @
afdedfbc
...
@@ -110,19 +110,19 @@ const KonnectorViewerCard = ({
...
@@ -110,19 +110,19 @@ const KonnectorViewerCard = ({
const
updateGlobalFluidStatus
=
useCallback
(
async
():
Promise
<
const
updateGlobalFluidStatus
=
useCallback
(
async
():
Promise
<
FluidStatus
[]
FluidStatus
[]
>
=>
{
>
=>
{
const
_
updatedFluidStatus
=
await
fluidService
.
getFluidStatus
()
const
updatedFluidStatus
=
await
fluidService
.
getFluidStatus
()
const
refDate
=
DateTime
.
fromISO
(
'
0001-01-01
'
)
const
refDate
=
DateTime
.
fromISO
(
'
0001-01-01
'
)
let
_
lastDataDate
=
DateTime
.
fromISO
(
'
0001-01-01
'
)
let
lastDataDate
=
DateTime
.
fromISO
(
'
0001-01-01
'
)
for
(
const
fluid
of
_
updatedFluidStatus
)
{
for
(
const
fluid
of
updatedFluidStatus
)
{
if
(
fluid
?.
lastDataDate
&&
fluid
?.
lastDataDate
>
_
lastDataDate
)
{
if
(
fluid
?.
lastDataDate
&&
fluid
?.
lastDataDate
>
lastDataDate
)
{
_
lastDataDate
=
fluid
.
lastDataDate
lastDataDate
=
fluid
.
lastDataDate
}
}
}
}
if
(
_
lastDataDate
>
refDate
)
{
if
(
lastDataDate
>
refDate
)
{
dispatch
(
setSelectedDate
(
_
lastDataDate
))
dispatch
(
setSelectedDate
(
lastDataDate
))
}
}
return
_
updatedFluidStatus
return
updatedFluidStatus
},
[
dispatch
,
fluidService
])
},
[
dispatch
,
fluidService
])
const
refreshChallengeState
=
useCallback
(
async
()
=>
{
const
refreshChallengeState
=
useCallback
(
async
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment