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
c7587340
Commit
c7587340
authored
4 years ago
by
CARRON Guilhem
Browse files
Options
Downloads
Patches
Plain Diff
WIP: test random cron
parent
af576142
No related branches found
No related tags found
3 merge requests
!103
Support
,
!102
Dev
,
!72
features/US182_triggers_planning
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/ContentComponents/Report/Report.tsx
+3
-0
3 additions, 0 deletions
src/components/ContentComponents/Report/Report.tsx
src/services/fluidConfigService.ts
+1
-1
1 addition, 1 deletion
src/services/fluidConfigService.ts
with
4 additions
and
1 deletion
src/components/ContentComponents/Report/Report.tsx
+
3
−
0
View file @
c7587340
...
@@ -3,6 +3,7 @@ import { translate } from 'cozy-ui/react/I18n'
...
@@ -3,6 +3,7 @@ import { translate } from 'cozy-ui/react/I18n'
import
{
AppContext
}
from
'
components/Contexts/AppContextProvider
'
import
{
AppContext
}
from
'
components/Contexts/AppContextProvider
'
import
UserProfileManager
from
'
services/userProfileDataManagerService
'
import
UserProfileManager
from
'
services/userProfileDataManagerService
'
import
{
Client
,
withClient
}
from
'
cozy-client
'
import
{
Client
,
withClient
}
from
'
cozy-client
'
import
KonnectorStatusService
from
'
services/konnectorStatusService
'
interface
ReportProps
{
interface
ReportProps
{
t
:
Function
t
:
Function
...
@@ -24,6 +25,8 @@ const Report: React.FC<ReportProps> = ({ t, client }: ReportProps) => {
...
@@ -24,6 +25,8 @@ const Report: React.FC<ReportProps> = ({ t, client }: ReportProps) => {
updatedUserProfile
(
e
.
target
.
value
)
updatedUserProfile
(
e
.
target
.
value
)
}
}
const
kss
=
new
KonnectorStatusService
(
client
)
console
.
log
(
kss
.
getAllTriggers
())
return
(
return
(
<
div
className
=
"report-root"
>
<
div
className
=
"report-root"
>
<
div
className
=
"report-content"
>
<
div
className
=
"report-content"
>
...
...
This diff is collapsed.
Click to expand it.
src/services/fluidConfigService.ts
+
1
−
1
View file @
c7587340
...
@@ -17,7 +17,7 @@ export default class FluidConfig {
...
@@ -17,7 +17,7 @@ export default class FluidConfig {
* @param min Minimum hour for cron
* @param min Minimum hour for cron
* @param max Maximum hour for cron
* @param max Maximum hour for cron
*/
*/
public
getCronArgs
(
min
=
8
,
max
=
10
):
string
{
public
getCronArgs
(
min
=
8
,
max
=
9
):
string
{
const
randomHour
=
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
+
1
)
+
min
)
const
randomHour
=
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
+
1
)
+
min
)
const
randomMinutes
=
Math
.
floor
(
Math
.
random
()
*
59
)
const
randomMinutes
=
Math
.
floor
(
Math
.
random
()
*
59
)
return
`0
${
randomMinutes
}
${
randomHour
}
* * *`
return
`0
${
randomMinutes
}
${
randomHour
}
* * *`
...
...
This diff is collapsed.
Click to expand it.
Yoan VALLET
@yvallet
mentioned in commit
1320aece
·
4 years ago
mentioned in commit
1320aece
mentioned in commit 1320aecec1165669cbc866190260005d039404a6
Toggle commit list
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