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

RF: Moved Analytics to class #3222

Merged
merged 6 commits into from
Jan 7, 2023
Merged

Conversation

blckmn
Copy link
Member

@blckmn blckmn commented Jan 7, 2023

Encapsulating the Analytics in a class.

@github-actions

This comment has been minimized.

@blckmn blckmn added this to the 10.9.0 milestone Jan 7, 2023
Copy link
Member

@chmelevskij chmelevskij left a comment

Choose a reason for hiding this comment

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

I'm also getting following error on master

object_hash.js:1 Uncaught Error: Object argument required.
    at u (object_hash.js:1:2030)
    at t (object_hash.js:1:753)
    at Function.sha1 (object_hash.js:1:1085)
    at serial_backend.js:443:77
    at Object.send_message (msp.js:323:17)
    at processUid (serial_backend.js:440:9)
    at serial_backend.js:435:9
    at Object.send_message (msp.js:323:17)
    at checkReportProblems (serial_backend.js:403:9)
    at processBoardInfo (serial_backend.js:383:9)
    at onOpenVirtual (serial_backend.js:325:5)
    at Object.connectVirtual (serial.js:215:13)
    at Object.connect (serial.js:33:18)
    at HTMLAnchorElement.<anonymous> (serial_backend.js:75:32)
    at HTMLAnchorElement.dispatch (jquery.min.js:2:43064)
    at y.handle (jquery.min.js:2:41048)
u @ object_hash.js:1
t @ object_hash.js:1
sha1 @ object_hash.js:1
(anonymous) @ serial_backend.js:443
send_message @ msp.js:323
processUid @ serial_backend.js:440
(anonymous) @ serial_backend.js:435
send_message @ msp.js:323
checkReportProblems @ serial_backend.js:403
processBoardInfo @ serial_backend.js:383
onOpenVirtual @ serial_backend.js:325
connectVirtual @ serial.js:215
connect @ serial.js:33
(anonymous) @ serial_backend.js:75
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2

At least in virtual mode. And assume this exists in this pr. Could we fix that while we are at it?

@limonspb
Copy link
Member

limonspb commented Jan 7, 2023

I'm also getting following error on master

object_hash.js:1 Uncaught Error: Object argument required.
    at u (object_hash.js:1:2030)
    at t (object_hash.js:1:753)
    at Function.sha1 (object_hash.js:1:1085)
    at serial_backend.js:443:77
    at Object.send_message (msp.js:323:17)
    at processUid (serial_backend.js:440:9)
    at serial_backend.js:435:9
    at Object.send_message (msp.js:323:17)
    at checkReportProblems (serial_backend.js:403:9)
    at processBoardInfo (serial_backend.js:383:9)
    at onOpenVirtual (serial_backend.js:325:5)
    at Object.connectVirtual (serial.js:215:13)
    at Object.connect (serial.js:33:18)
    at HTMLAnchorElement.<anonymous> (serial_backend.js:75:32)
    at HTMLAnchorElement.dispatch (jquery.min.js:2:43064)
    at y.handle (jquery.min.js:2:41048)
u @ object_hash.js:1
t @ object_hash.js:1
sha1 @ object_hash.js:1
(anonymous) @ serial_backend.js:443
send_message @ msp.js:323
processUid @ serial_backend.js:440
(anonymous) @ serial_backend.js:435
send_message @ msp.js:323
checkReportProblems @ serial_backend.js:403
processBoardInfo @ serial_backend.js:383
onOpenVirtual @ serial_backend.js:325
connectVirtual @ serial.js:215
connect @ serial.js:33
(anonymous) @ serial_backend.js:75
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2

At least in virtual mode. And assume this exists in this pr. Could we fix that while we are at it?

Is that on Receiver tab?
Sorry not on PC now.

I spotted this error, not related to analytics:
#3184 (comment)

@limonspb
Copy link
Member

limonspb commented Jan 7, 2023

I'm also getting following error on master

object_hash.js:1 Uncaught Error: Object argument required.
    at u (object_hash.js:1:2030)
    at t (object_hash.js:1:753)
    at Function.sha1 (object_hash.js:1:1085)
    at serial_backend.js:443:77
    at Object.send_message (msp.js:323:17)
    at processUid (serial_backend.js:440:9)
    at serial_backend.js:435:9
    at Object.send_message (msp.js:323:17)
    at checkReportProblems (serial_backend.js:403:9)
    at processBoardInfo (serial_backend.js:383:9)
    at onOpenVirtual (serial_backend.js:325:5)
    at Object.connectVirtual (serial.js:215:13)
    at Object.connect (serial.js:33:18)
    at HTMLAnchorElement.<anonymous> (serial_backend.js:75:32)
    at HTMLAnchorElement.dispatch (jquery.min.js:2:43064)
    at y.handle (jquery.min.js:2:41048)
u @ object_hash.js:1
t @ object_hash.js:1
sha1 @ object_hash.js:1
(anonymous) @ serial_backend.js:443
send_message @ msp.js:323
processUid @ serial_backend.js:440
(anonymous) @ serial_backend.js:435
send_message @ msp.js:323
checkReportProblems @ serial_backend.js:403
processBoardInfo @ serial_backend.js:383
onOpenVirtual @ serial_backend.js:325
connectVirtual @ serial.js:215
connect @ serial.js:33
(anonymous) @ serial_backend.js:75
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2

At least in virtual mode. And assume this exists in this pr. Could we fix that while we are at it?

Found it!
fixing here:
#3223

@blckmn
Copy link
Member Author

blckmn commented Jan 7, 2023

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> FAIL
  • assigned to a milestone -> PASS
  • cooling off period lapsed -> FAIL
  • commit count less or equal to three -> FAIL
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> PASS
  • Tested label found -> FAIL
  • assigned to an approver -> PASS
  • approver count at least three -> FAIL

@github-actions

This comment has been minimized.

@sonarcloud
Copy link

sonarcloud bot commented Jan 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2023

Do you want to test this code? Here you have an automated build:
Betaflight-Configurator-Android
Betaflight-Configurator-Linux
Betaflight-Configurator-macOS
Betaflight-Configurator-Windows
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

@haslinghuis haslinghuis merged commit fd99e77 into betaflight:master Jan 7, 2023
@blckmn blckmn deleted the ga_class branch January 7, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants