• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CSCfi / metadata-submitter-frontend / 17039256042

18 Aug 2025 11:28AM UTC coverage: 55.494% (-2.3%) from 57.785%
17039256042

push

github

Hang Le
Removing metadata objects and drafts from submission object (merge commit)

Merge branch 'bugfix/remove-metadataObjects-and-drafts' into 'main'
* Fix for undefined object's id and title

* Remove metadataObjects and drafts

Closes #1072
See merge request https://gitlab.ci.csc.fi/sds-dev/sd-submit/metadata-submitter-frontend/-/merge_requests/1154

Reviewed-by: Liisa Lado-Villar <145-lilado@users.noreply.gitlab.ci.csc.fi>
Approved-by: Monika Radaviciute <mradavic@csc.fi>
Approved-by: Liisa Lado-Villar <145-lilado@users.noreply.gitlab.ci.csc.fi>
Merged by Hang Le <lhang@csc.fi>

596 of 832 branches covered (71.63%)

Branch coverage included in aggregate %.

217 of 328 new or added lines in 27 files covered. (66.16%)

469 existing lines in 16 files now uncovered.

5500 of 10153 relevant lines covered (54.17%)

4.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/services/xmlSubmissionAPI.ts
UNCOV
1
import { create } from "apisauce"
×
2

UNCOV
3
import { errorMonitor } from "./errorMonitor"
×
4

5
import { APIResponse } from "types"
6

UNCOV
7
const api = create({ baseURL: "" })
×
UNCOV
8
api.addMonitor(errorMonitor)
×
9

UNCOV
10
const validateXMLFile = async (
×
11
  objectType: string,
×
12
  XMLFile: string | Blob
×
13
): Promise<APIResponse> => {
×
14
  const formData = new FormData()
×
15
  formData.append(objectType, XMLFile)
×
16
  return await api.post("/v1/validate", formData, {
×
17
    headers: {
×
18
      "Content-Type": "multipart/form-data",
×
19
    },
×
20
  })
×
21
}
×
22

UNCOV
23
export default { validateXMLFile }
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc