Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity generalization #73

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d775750
cache file
priyanka-TL Feb 22, 2022
1141694
package.json
priyanka-TL Feb 22, 2022
9a2f580
console removed
VISHNUDAS-tunerlabs Mar 7, 2022
0add1df
Merge branch 'entityGeneralization' of https://github.com/shikshaloka…
VISHNUDAS-tunerlabs Mar 7, 2022
fd2eab1
entity Generalization ml-survey march 21
VISHNUDAS-tunerlabs Mar 21, 2022
3fa52cf
time out fn change in learners search
VISHNUDAS-tunerlabs Mar 24, 2022
7502566
listByLocationIds change
VISHNUDAS-tunerlabs Mar 24, 2022
87983a8
assessment api timeout error resolve
VISHNUDAS-tunerlabs Mar 25, 2022
a81ef01
observations/entities self review
VISHNUDAS-tunerlabs Mar 25, 2022
6f7174e
self review- observation Submissions create
VISHNUDAS-tunerlabs Mar 25, 2022
008aa05
ml-survey review comment resolve lvl 1
VISHNUDAS-tunerlabs Mar 30, 2022
53a6c85
req data change
VISHNUDAS-tunerlabs Mar 30, 2022
4652a91
externalId added with name
VISHNUDAS-tunerlabs Mar 30, 2022
83b4be6
externalId added with name 2
VISHNUDAS-tunerlabs Mar 30, 2022
9a6c097
eg changes
VISHNUDAS-tunerlabs Apr 4, 2022
dbad1b2
org fuzzy search added
VISHNUDAS-tunerlabs Jun 20, 2022
db27f15
typo resolve
VISHNUDAS-tunerlabs Jul 20, 2022
187ebfe
extraline remove
VISHNUDAS-tunerlabs Jul 20, 2022
86230fa
extraline remove
VISHNUDAS-tunerlabs Jul 20, 2022
b14b696
resolve
VISHNUDAS-tunerlabs Jul 20, 2022
5fdc70a
comments removed
VISHNUDAS-tunerlabs Jul 20, 2022
df333ec
user resd added
VISHNUDAS-tunerlabs Jul 20, 2022
84940b5
resolves
VISHNUDAS-tunerlabs Jul 20, 2022
444ad07
changed to resolve
VISHNUDAS-tunerlabs Jul 20, 2022
ce073f0
formated
VISHNUDAS-tunerlabs Jul 20, 2022
0d6010f
sunbird.js removed functions added to users
VISHNUDAS-tunerlabs Jul 22, 2022
f9376d4
code check added
VISHNUDAS-tunerlabs Aug 5, 2022
a542c6e
comment removed
VISHNUDAS-tunerlabs Aug 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolve
  • Loading branch information
VISHNUDAS-tunerlabs committed Jul 20, 2022
commit b14b696dc7c9114be5e506afb334a4c4d69b169d
8 changes: 4 additions & 4 deletions controllers/v1/observationsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ module.exports = class Observations extends Abstract {
}


let searchText= req.searchText;
let searchText= req.searchText ? req.searchText : "";
if( searchText !== "" ){
let matchEntities = [];
subEntities.map( entityData => {
Expand All @@ -766,8 +766,8 @@ module.exports = class Observations extends Abstract {
subEntities = matchEntities;
}

let totalcount = subEntities.length;
if (subEntities.length > 0) {
let totalCount = subEntities.length;
if (totalCount > 0) {
let startIndex = req.pageSize * (req.pageNo - 1);
let endIndex = startIndex + req.pageSize;
subEntities = subEntities.slice(startIndex, endIndex);
Expand All @@ -784,7 +784,7 @@ module.exports = class Observations extends Abstract {

response.result.push({
"data" : data,
"count" : totalcount
"count" : totalCount
});
}
}
Expand Down