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

Selecting zcl properties and generate template files in a login page #630

Merged
merged 4 commits into from
Oct 14, 2022

Conversation

Mehradml
Copy link
Contributor

Resolved issues:
#555
#554
#351

@brdandu
Copy link
Collaborator

brdandu commented Aug 18, 2022

Screen Shot 2022-08-18 at 2 49 09 PM

Please see the 4 issues mentioned in the image. Also rebase this branch to resolve the conflicts

}

/**
* Returns a promise that resolves into an array of objects containing 'sessionId', 'sessionKey' and 'creationTime' and assigned packages.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Function description should mention the dirty sessions and what that is for more clarity

* @param {*} sessionId
* @param {*} userRef
* @param {*} sessionKey
* @returns A promise that resolves with the number of rows updated.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This does not seem right. Is more than one row actually updated or just one row?


module.exports.packagesAndSessions = (db) => {
return async (req, res) => {
const zclAttributes = await queryPackage.getPackagesByType(
Copy link
Collaborator

Choose a reason for hiding this comment

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

zclAttributes can be confusing here. may be just go with zclProperties

})
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Provide description for each of the additions here.

@@ -55,7 +55,13 @@ function checksum(data) {
* @param {*} options: object containing 'zcl' and 'template'
* @returns Promise that resolves with the packages array.
*/
async function initializeSessionPackage(db, sessionId, options) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update function description

db,
sessionId,
options,
selectedProperties = null,
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this selectedZclPropertyPackage?

sessionId,
options,
selectedProperties = null,
selectedGen = null
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this selectedGenTemplatePackage?


if (`debugNavBar` in query) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Get rid of all the additional diff so that only the actual changes show up.

@brdandu brdandu linked an issue Sep 2, 2022 that may be closed by this pull request
This was linked to issues Sep 9, 2022
@Amirreza-Ghasemkhani Amirreza-Ghasemkhani force-pushed the tdj_555_7/7/2022 branch 2 times, most recently from c22e723 to e1af444 Compare September 20, 2022 14:37
@Mehradml Mehradml marked this pull request as ready for review October 14, 2022 12:39
@tecimovic tecimovic merged commit e51e270 into project-chip:master Oct 14, 2022
paulr34 pushed a commit to paulr34/zap that referenced this pull request Nov 29, 2022
…roject-chip#630)

* Implement the initial selection of the valid sessions and property files.

Co-authored-by: Timotej Ecimovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants