forked from bigbluebutton/bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from gustavotrott/pr-19841
Add graphql data for Gladia transcriptions
- Loading branch information
Showing
177 changed files
with
1,882 additions
and
1,757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 0 additions & 63 deletions
63
...-apps/src/main/scala/org/bigbluebutton/core/apps/users/SelectRandomViewerReqMsgHdlr.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/UserTranscriptionErrorDAO.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package org.bigbluebutton.core.db | ||
|
||
import org.bigbluebutton.core.models.{ VoiceUserState } | ||
import slick.jdbc.PostgresProfile.api._ | ||
|
||
import scala.concurrent.ExecutionContext.Implicits.global | ||
import scala.util.{ Failure, Success } | ||
|
||
case class UserTranscriptionErrorDbModel( | ||
userId: String, | ||
meetingId: String, | ||
errorCode: String, | ||
errorMessage: String, | ||
lastUpdatedAt: java.sql.Timestamp = new java.sql.Timestamp(System.currentTimeMillis()) | ||
) | ||
|
||
class UserTranscriptionErrorDbTableDef(tag: Tag) extends Table[UserTranscriptionErrorDbModel](tag, None, "user_transcriptionError") { | ||
override def * = ( | ||
userId, meetingId, errorCode, errorMessage, lastUpdatedAt | ||
) <> (UserTranscriptionErrorDbModel.tupled, UserTranscriptionErrorDbModel.unapply) | ||
val userId = column[String]("userId", O.PrimaryKey) | ||
val meetingId = column[String]("meetingId") | ||
val errorCode = column[String]("errorCode") | ||
val errorMessage = column[String]("errorMessage") | ||
val lastUpdatedAt = column[java.sql.Timestamp]("lastUpdatedAt") | ||
} | ||
|
||
object UserTranscriptionErrorDAO { | ||
def insert(userId: String, meetingId: String, errorCode: String, errorMessage: String) = { | ||
DatabaseConnection.db.run( | ||
TableQuery[UserTranscriptionErrorDbTableDef].insertOrUpdate( | ||
UserTranscriptionErrorDbModel( | ||
userId = userId, | ||
meetingId = meetingId, | ||
errorCode = errorCode, | ||
errorMessage = errorMessage, | ||
lastUpdatedAt = new java.sql.Timestamp(System.currentTimeMillis()), | ||
) | ||
) | ||
).onComplete { | ||
case Success(rowsAffected) => { | ||
DatabaseConnection.logger.debug(s"$rowsAffected row(s) inserted on user_transcriptionError table!") | ||
} | ||
case Failure(e) => DatabaseConnection.logger.debug(s"Error inserting user_transcriptionError: $e") | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.