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

FAIRsharing / fairsharing.github.io / 24769584990

22 Apr 2026 08:57AM UTC coverage: 95.892% (-4.1%) from 100.0%
24769584990

push

github

web-flow
Merge pull request #2746 from FAIRsharing/dev

Dev

3653 of 3813 branches covered (95.8%)

Branch coverage included in aggregate %.

17344 of 18229 new or added lines in 282 files covered. (95.15%)

766 existing lines in 50 files now uncovered.

38617 of 40268 relevant lines covered (95.9%)

5.48 hits per line

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

87.88
/src/store/AdvancedSearchComponents/objectTypes.js
1
import GraphClient from "@/lib/GraphClient/GraphClient.js";
1✔
2
import objectTypesQuery from "@/lib/GraphClient/queries/getObjectTypes.json";
1✔
3

4
const CLIENT = new GraphClient(),
1✔
5
  SEARCH_OBJECTTYPES = JSON.parse(JSON.stringify(objectTypesQuery));
1✔
6
const state = {
1✔
7
  objectTypes: [],
1✔
8
  loadingData: false,
1✔
9
};
1✔
10

11
const actions = {
1✔
12
  async fetchObjectTypes({ commit }, queryParams) {
1✔
13
    commit("setLoadingData", true);
2✔
14
    SEARCH_OBJECTTYPES.queryParam = {
2✔
15
      q: queryParams,
2✔
16
    };
2✔
17
    let response = await CLIENT.executeQuery(SEARCH_OBJECTTYPES);
2✔
18
    if (
2✔
19
      response["objectTypes"].records &&
2!
NEW
20
      response["objectTypes"].records.length
×
21
    ) {
2!
NEW
22
      const objectTypesList = response["objectTypes"].records.map(
×
NEW
23
        ({ label }) => label,
×
NEW
24
      );
×
NEW
25
      commit("setObjectTypes", objectTypesList);
×
NEW
26
    }
×
27

28
    commit("setLoadingData", false);
2✔
29
  },
1✔
30
  resetRecords({ commit }) {
1✔
31
    commit("resetObjectTypes");
1✔
32
  },
1✔
33
};
1✔
34

35
const mutations = {
1✔
36
  setObjectTypes(state, objectTypes) {
1✔
37
    state.objectTypes = objectTypes;
1✔
38
  },
1✔
39
  setLoadingData(state, loadingData) {
1✔
40
    state.loadingData = loadingData;
1✔
41
  },
1✔
42
  resetObjectTypes(state) {
1✔
43
    state.objectTypes = [];
1✔
44
  },
1✔
45
};
1✔
46

47
const getters = {
1✔
48
  getObjectTypes(state) {
1✔
49
    return state.objectTypes;
1✔
50
  },
1✔
51
  getLoadingData(state) {
1✔
52
    return state.loadingData;
1✔
53
  },
1✔
54
};
1✔
55
const objectTypes = {
1✔
56
  namespaced: true,
1✔
57
  state,
1✔
58
  actions,
1✔
59
  mutations,
1✔
60
  getters,
1✔
61
};
1✔
62

63
export default objectTypes;
1✔
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