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

Issue #40 feat: Audio Upload Implementation #86

Merged

Conversation

simran142002
Copy link

Functionality:

Added Audio Upload functionality

Solution:

Sent audio as a parameter from question component to assets-browser component such that it can trigger the audio upload pop up and its corresponding mechanism

Risk level:

  • high
  • medium
  • low

Issue:

#40

How to test:

nodemon server.js
npm run start

@simran142002 simran142002 changed the title Feat/audio upload Issue #40 feat: Audio Upload Implementation #84 Jul 24, 2023
@simran142002 simran142002 changed the title Issue #40 feat: Audio Upload Implementation #84 Issue #40 feat: Audio Upload Implementation Jul 24, 2023
package.json Outdated
@@ -49,13 +49,16 @@
"jquery": "^3.5.1",
"jquery.fancytree": "^2.37.0",
"karma-mocha-reporter": "^2.2.5",
"katex": "^0.11.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need katex library for this?

@vaibhavbhuva
Copy link
Contributor

@simran142002 Please check the circle-ci issue and fix the same.

})
export class AssetsBrowserComponent implements OnInit, OnChanges, OnDestroy {
@ViewChild('editor') public editorRef: ElementRef;
@Output() videoDataOutput = new EventEmitter<any>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove videoDataOutput variable if you not using it.

@vaibhavbhuva
Copy link
Contributor

@simran142002 Please check and fix the code smells.
5 Code Smells

export class AssetsBrowserComponent implements OnInit, OnChanges, OnDestroy {
@ViewChild('editor') public editorRef: ElementRef;
@Output() videoDataOutput = new EventEmitter<any>();
@Output() editorDataOutput = new EventEmitter<any>();
Copy link
Contributor

Choose a reason for hiding this comment

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

@simran142002 Still I can see there some variables are not being used by the component. Please check and remove the same.

Copy link
Contributor

Choose a reason for hiding this comment

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

@simran142002 Why is this file needed, since we have the following file for mocking the data?
projects/questionset-editor-library/src/lib/components/assets-browser/assets-browser.component.spec.data.ts

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 5, 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

81.8% 81.8% Coverage
2.6% 2.6% Duplication

@vaibhavbhuva vaibhavbhuva merged commit d2f4f4e into Sunbird-inQuiry:C4GT_Issue_40 Sep 5, 2023
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.

2 participants