Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
rednerd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orus-io
rednerd
Commits
f3651f7fdcd1
Commit
f3651f7fdcd1
authored
6 days ago
by
Christophe de Vienne
Browse files
Options
Downloads
Patches
Plain Diff
pass files to Render()
parent
edc968552f0a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/render.go
+1
-0
1 addition, 0 deletions
lib/render.go
restapi/handlers/account-template-preview.go
+1
-0
1 addition, 0 deletions
restapi/handlers/account-template-preview.go
restapi/handlers/render.go
+3
-1
3 additions, 1 deletion
restapi/handlers/render.go
with
5 additions
and
1 deletion
lib/render.go
+
1
−
0
View file @
f3651f7f
...
...
@@ -123,6 +123,7 @@
data
models
.
Dataset
,
document
*
models
.
Document
,
metadata
models
.
Metadata
,
files
*
models
.
Fileset
,
toType
string
,
enableRequestLogging
bool
,
)
([]
*
models
.
Document
,
error
)
{
...
...
This diff is collapsed.
Click to expand it.
restapi/handlers/account-template-preview.go
+
1
−
0
View file @
f3651f7f
...
...
@@ -57,6 +57,7 @@
Metadata
:
template
.
StaticMetadata
.
Clone
()
.
Update
(
template
.
Metadata
),
},
models
.
Metadata
{},
&
models
.
Fileset
{},
mimetype
,
false
,
)
...
...
This diff is collapsed.
Click to expand it.
restapi/handlers/render.go
+
3
−
1
View file @
f3651f7f
...
...
@@ -30,6 +30,7 @@
data
models
.
Dataset
,
document
*
models
.
Document
,
metadata
models
.
Metadata
,
files
*
models
.
Fileset
,
toType
string
,
)
([]
*
models
.
Document
,
error
)
{
if
template
==
nil
&&
document
==
nil
{
...
...
@@ -37,7 +38,7 @@
}
documents
,
err
:=
h
.
renderer
.
Render
(
ctx
,
principal
.
Subject
,
template
,
data
,
document
,
metadata
,
toType
,
ctx
,
principal
.
Subject
,
template
,
data
,
document
,
metadata
,
files
,
toType
,
principal
.
EnabledRequestLogging
,
)
...
...
@@ -65,6 +66,7 @@
params
.
Request
.
Data
,
params
.
Request
.
Document
,
params
.
Request
.
Metadata
,
params
.
Request
.
Files
,
string
(
accept
),
)
if
err
!=
nil
{
...
...
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