Skip to content

Commit

Permalink
Use UI to upload EHIC from csv file to the datastore (to support dev/…
Browse files Browse the repository at this point in the history
…test) (#126)

* UI: first embryo to support upload of csv for EHIC and perhaps PDA1 for dev/test

* UI: work in progress to support upload of csv for EHIC and perhaps PDA1 for dev/test

* UI: work in progress to support upload of csv for EHIC for dev/test

* UI: work in progress to support upload of csv for EHIC for dev/test

* UI: work in progress to support upload of csv for EHIC for dev/test

* UI: work in progress to support upload of csv for EHIC for dev/test

* UI: upload of ehic's using csv to be used for dev/test.

* Ignore LibreOffice lock files
  • Loading branch information
matskramer authored Jan 11, 2025
1 parent 3502961 commit 92c12f5
Show file tree
Hide file tree
Showing 5 changed files with 392 additions and 56 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ kraft[0-9]*-data/
**/.*.orig
developer_tools/*.pem
.env
.~lock.*.csv#
2 changes: 1 addition & 1 deletion internal/apigw/db/methods_vc_datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ func (c *VCDatastoreColl) SearchDocuments(ctx context.Context, query *SearchDocu
// 1 for ascending, -1 for descending
sort = append(sort, bson.E{Key: field, Value: order})
}
findOptions.SetSort(sort)
} else {
sort = append(sort, bson.E{Key: "meta.document_id", Value: 1})
}
findOptions.SetSort(sort)

c.log.Debug("Searching documents using", "filter", filter, "findOptions", findOptions)

Expand Down
5 changes: 5 additions & 0 deletions internal/ui/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
Search documents
</a>
<hr class="navbar-divider">
<a id="display-upload-documents-csv-form-btn"
onclick="addUploadDocumentsUsingCsvFormArticleToContainer()"
class="navbar-item">
Upload documents using csv file
</a>
<a id="display-upload-form-btn"
onclick="addUploadFormArticleToContainer()"
class="navbar-item">
Expand Down
Loading

0 comments on commit 92c12f5

Please sign in to comment.