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

fix: remove wrong condition from ZapConfig #1385

Merged

Conversation

tbrkollar
Copy link
Collaborator

No description provided.

@paulr34 paulr34 self-requested a review August 1, 2024 16:41
@tbrkollar tbrkollar requested a review from brdandu August 2, 2024 13:44
@tbrkollar tbrkollar force-pushed the fix/logo-is-missing-on-toolbar branch from f59cd21 to cf1ba5e Compare August 2, 2024 13:45
@tbrkollar tbrkollar marked this pull request as ready for review August 2, 2024 14:18
(zfp) => zfp.type != dbEnum.packageType.zclXmlStandalone
)
currentZapFileZclPacakges = this.currentZapFilePackages.filter(
(zfp) => zfp.type == dbEnum.packageType.zclProperties
)

currentZapFileTemplatePacakges = this.currentZapFilePackages.filter(
Copy link
Collaborator

@brdandu brdandu Aug 2, 2024

Choose a reason for hiding this comment

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

what about currentZapFileZclPacakges.map below

let currentZapFileZclPacakges = []
let currentTopLevelZapFilePacakges = []
let currentZapFileTemplatePacakges = []
console.log(result.data.zapFilePackages)
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 console.log

let currentZapFileTemplatePacakges = []
console.log(result.data.zapFilePackages)
let currentZapFileZclPackages = []
let currentTopLevelZapFilePackages = []
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about the changes to currentTopLevelZapFilePacakges.length below?

@@ -688,18 +688,20 @@ export default {
this.filePath = result.data.filePath
this.open = result.data.open
this.currentZapFilePackages = result.data.zapFilePackages
let currentZapFileZclPacakges = []
let currentTopLevelZapFilePacakges = []
let currentZapFileTemplatePacakges = []
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about currentZapFileTemplatePacakges.map below?

@@ -716,16 +717,13 @@ export default {
this.zclPropertiesRow.length == currentZapFileZclPacakges.length ||
this.zclPropertiesRow.length == 1
) {
// We shortcut this page, if the number of packages in the zap file
// and the number of packages loaded in the backend are the same.
if (this.zclGenRow.length == currentZapFileTemplatePacakges.length) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a typo that's probably breaking everything

@@ -716,16 +717,13 @@ export default {
this.zclPropertiesRow.length == currentZapFileZclPacakges.length ||
Copy link
Collaborator

Choose a reason for hiding this comment

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

it should be "currentZapFileZclPackages"

@tbrkollar tbrkollar force-pushed the fix/logo-is-missing-on-toolbar branch from 6bd469f to ab6ac00 Compare August 5, 2024 08:04
@tbrkollar tbrkollar requested a review from brdandu August 5, 2024 13:13
@@ -40,4 +40,11 @@ describe('Check theme functionality', () => {
cy.rendererApi(rendApi.id.setDarkTheme, 'false')
cy.get('body').should('have.class', 'body--light')
})
it('Zigbee mode', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

From next time add a description on what the test is testing. Difficult to understand what this might be testing in the first go.

@tbrkollar tbrkollar merged commit ed938c9 into project-chip:master Aug 5, 2024
13 checks passed
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.

3 participants