Skip to content

Conversation

@timbl
Copy link
Contributor

@timbl timbl commented Nov 22, 2019

Currently untested

Copy link
Contributor

@megoth megoth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned, The big changes in widgets/forms.js makes it really hard to review...

Also, I think you might benefit from using functional methods such as .reduce, .forEach, and .map in combination with more specialized loops that does one thing each. Using for (...) {...} with a lot of things happening in them can be hard to follow.

package.json Outdated
"build-types": "tsc --emitDeclarationOnly",
"postversion": "git push origin master --follow-tags",
"prepublishOnly": "npm run build",
"lint": "prettier-standard --lint 'src/**/*.js' 'src/**/*.ts'",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm doing this in https://github.com/solid/solid-ui/pull/161, please revert these changes


UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, callback) {
var updater = kb.updater || new $rdf.UpdateManager(kb)
UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, _callback) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also done in https://github.com/solid/solid-ui/pull/161, please revert this change from this PR.

}

for (let g = 0; g < things.length; g++) {
var thing = things[g]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a .forEach would better suit this loop, since you only refer to things once.

// list.append(object)
ins = [$rdf.st(subject, property, list)] // Will this work?
} else {
const oldList = new $rdf.Collecion(list.elments)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo - $rdf.Collection --> $rdf.Collection

}
list.elements.splice(i, 2, list.elements[i + 1], list.elements[i])
}
saveListThenRefresh()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use await before the calls of saveListThenRefresh()?

// box.appendChild(dom.createElement('h3')).textContent = "Fields:".
var body = box.appendChild(dom.createElement('tr'))
var tail = box.appendChild(dom.createElement('tr'))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't do this big moves of functionality in commits that has other big changes - makes it really hard to review what has changed...

@megoth megoth added this to the Data Browser Release 5 milestone Dec 13, 2019
megoth and others added 23 commits December 19, 2019 13:02
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Thank you for all your suggestions @TallTed ^_^

Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-Authored-By: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Copy link
Contributor

@megoth megoth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@megoth megoth merged commit ff45c7a into master Dec 19, 2019
@megoth megoth deleted the ordered-forms branch December 19, 2019 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants