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

[WIP]Diff of Assistify and Rocket.Chat #14982

Merged
merged 0 commits into from
Sep 9, 2020

Conversation

mrsimpson
Copy link
Collaborator

@mrsimpson mrsimpson commented Jul 12, 2019

This PR serves as container for documenting differences between plain Rocket.Chat and the Assistify fork.

Aim is to change Assistify in such a way that this Diff is getting reduced more and more

Human readable List of changes discovered

@CLAassistant
Copy link

CLAassistant commented Jul 12, 2019

CLA assistant check
All committers have signed the CLA.

<template name="permissionsTable">
<table class="permission-grid secondary-background-color">
<thead class="content-background-color">
<tr>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

PR #8942

@@ -1297,6 +1297,27 @@ export class Subscriptions extends Base {
return result;
}

hideOldByUserId(userId, thresholdDate) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@mrsimpson mrsimpson closed this Jul 12, 2019
@mrsimpson mrsimpson changed the title DO NOT MERGE - Diff of Assistify and Rocket.Chat Diff of Assistify and Rocket.Chat Jul 12, 2019
@@ -1,9 +1,9 @@
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { Blaze } from 'meteor/blaze';
import { BlazeLayout } from 'meteor/kadira:blaze-layout';
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it really necessary to move this import?

Copy link
Contributor

@vickyokrm vickyokrm Jul 23, 2019

Choose a reason for hiding this comment

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

PR Assistify #621

@@ -15,9 +15,10 @@ test-install-dependencies: &test-install-dependencies
sudo apt-get install -y mongodb-org-shell google-chrome-stable

test-run: &test-run
name: Run Tests
command: |
for i in $(seq 1 5); do mongo rocketchat --eval 'db.dropDatabase()' && npm test && s=0 && break || s=$? && sleep 1; done; (exit $s)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No PR

We decided our automated testing should run differently compared to RC: We don't want to retry the whole testsuite if one test failed, but we'll be executing the tests file-by-file.

for i in $(seq 1 5); do mongo rocketchat --eval 'db.dropDatabase()' && npm test && s=0 && break || s=$? && sleep 1; done; (exit $s)
name: Run Tests
command: |
if [[ $DISABLE_SMARTI ]]; then rm -rf ./tests/end-to-end/ui_smarti; fi;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Smarti tests can currently not run on our CI due to memory limits. => These tests can be remove based on the ENV

@@ -1,20 +1,55 @@
FROM node:8
FROM ubuntu:16.04 as builder
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NO PR

We're using our own docker configuration to build the chat completely in the builder.
RC itself just downloads the source from its releases in order to create the docker image.

.dockerignore Outdated
@@ -1,5 +1,82 @@
**/bin/**
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NO PR

we just need to ignore more since we're really building from source during the docker build

@@ -0,0 +1,33 @@
#!/bin/bash
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NO PR

Dedicated script allowing to try a UI test multiple times without always starting from scratch

@@ -0,0 +1,56 @@
#!/usr/bin/env bash
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NO PR

This file holds the instructions where and how to package which artifacts in order to get them running on our servers

@@ -0,0 +1,23 @@
#!/bin/bash
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NO PR

This is only a helper for local testing.

@@ -110,10 +110,7 @@ function startApp(callback) {
function startChimp() {
startProcess({
name: 'Chimp',
command: 'npm',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NO PR

This changes the default test command to utilize our one-by-one-testing mechanism

HISTORY.md Outdated
@@ -1,3 +1,63 @@
# Assistify 0.9.9
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NO PR

We add our Assistify.Chat-history always on top of the last entry. This keeps the diff cleaner

@@ -20,7 +20,7 @@ const RocketChatAssetsInstance = new RocketChatFile.GridFS({
const assets = {
Copy link
Contributor

@vickyokrm vickyokrm Jul 22, 2019

Choose a reason for hiding this comment

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

No PR. This file holds the logo and assets for assistify.

@mrsimpson mrsimpson reopened this Jul 22, 2019
@mrsimpson
Copy link
Collaborator Author

need to re-open in order to hopefully update the changelist. Please do neither merge nor close.

@@ -0,0 +1,3 @@
This package contains all the Smarti-"AI" which aims at accelerating the current conversation.
Copy link
Contributor

Choose a reason for hiding this comment

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

No PR. This belongs to Assistify AI package.

@@ -0,0 +1,11 @@
// import { TAPi18n } from 'meteor/tap:i18n';
Copy link
Contributor

Choose a reason for hiding this comment

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

No PR. This belongs to Assistify AI package.

import { callbacks } from '../../../../callbacks/client';

/**
* Makes the knowledge base panel open on opening a room in which it is active
Copy link
Contributor

Choose a reason for hiding this comment

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

No PR. This belongs to Assistify AI package.

@@ -0,0 +1,10 @@
import '../models/AssistifySmarti.js';
Copy link
Contributor

Choose a reason for hiding this comment

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

No PR. This belongs to Assistify AI package.

@@ -0,0 +1,43 @@
import s from 'underscore.string';
Copy link
Contributor

Choose a reason for hiding this comment

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

No PR. This belongs to Assistify AI package.

@@ -0,0 +1,7 @@
import { ChatMessages } from '../../../../ui';
Copy link
Contributor

Choose a reason for hiding this comment

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

No PR. This belongs to Assistify AI package.

@@ -1,22 +1,24 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

No PR.

@@ -0,0 +1,879 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Already in the RC core.

@@ -0,0 +1 @@
node_modules
Copy link
Contributor

Choose a reason for hiding this comment

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

Already removed in the RC core.

@@ -0,0 +1,7 @@
This directory and the files immediately inside it are automatically generated
Copy link
Contributor

Choose a reason for hiding this comment

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

Already removed in the RC core.

@@ -0,0 +1,190 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Already removed in the RC core.

@@ -0,0 +1,11 @@
// import { TAPi18n } from 'meteor/tap:i18n';
Copy link
Contributor

Choose a reason for hiding this comment

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

PR 621

Copy link
Contributor

@geekgonecrazy geekgonecrazy left a comment

Choose a reason for hiding this comment

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

Just adding this as an extra layer to keep from merging. 😄

I'm a bit surprised its down to only 156 files difference. That's awesome

@geekgonecrazy geekgonecrazy changed the title Diff of Assistify and Rocket.Chat [WIP]Diff of Assistify and Rocket.Chat Jul 23, 2019
@@ -117,6 +117,11 @@
align-items: center;
}

/* support additional headers within a page */
Copy link
Contributor

Choose a reason for hiding this comment

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

No PR.

@@ -853,6 +853,52 @@ Template.room.events({
}
},

'click .recognized-term'(e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Code relevant for Assistify.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Smarti

@@ -1,6 +1,7 @@
.loading-animation {
color: @secondary-font-color;
font-size: 1.3rem;
line-height: 1.6rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

Relevant only to Assistify.

@@ -685,3 +685,13 @@ API.v1.addRoute('users.requestDataDownload', { authRequired: true }, {
});
},
});

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,2 @@
import './defaultLanguage.js';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No PR. This belongs to Assistify configuration package.

@@ -71,7 +71,7 @@ export const AutoTranslate = {
Tracker.autorun(() => {
Subscriptions.find().observeChanges({
changed: (id, fields) => {
if (fields.hasOwnProperty('autoTranslate')) {
if (fields.hasOwnProperty('autoTranslate') || fields.hasOwnProperty('autoTranslateLanguage')) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

#15768 (merged)

@@ -99,7 +99,7 @@ Template.autoTranslateFlexTab.onCreated(function() {
this.saveSetting = () => {
const field = this.editing.get();
const subscription = Subscriptions.findOne({ rid: this.rid, 'u._id': Meteor.userId() });
const previousLanguage = subscription.autoTranslateLanguage;
const previousLanguage = subscription && subscription.autoTranslateLanguage;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

#15768 (merged)

@@ -13,6 +13,7 @@ import './methods/saveSettings';
import './methods/translateMessage';
import './googleTranslate.js';
import './deeplTranslate.js';
import './msTranslate.js';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,174 @@
/**
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -44,6 +44,7 @@
{{#if showTranslated}}
<span class="translated">
<i class="icon-language {{#if msg.autoTranslateFetching}}loading{{/if}}" aria-label="{{_ "Translated"}}"></i>
<span class="translation-provider">{{ translationProvider }}</span>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -17,6 +17,7 @@ import { upsertMessage } from '../../ui-utils/client/lib/RoomHistoryManager';
import { messageArgs } from '../../ui-utils/client/lib/messageArgs';
import './message.html';
import './messageThread.html';
import { AutoTranslate } from '../../autotranslate/client';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -259,6 +260,11 @@ Template.message.helpers({
return msg.autoTranslateFetching || (!!autoTranslate !== !!msg.autoTranslateShowInverse && msg.translations && msg.translations[settings.translateLanguage]);
}
},
translationProvider() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -44,6 +44,7 @@
{{#if showTranslated}}
<span class="translated">
<i class="icon-language {{#if msg.autoTranslateFetching}}loading{{/if}}" aria-label="{{_ "Translated"}}"></i>
<span class="translation-provider">{{ translationProvider }}</span>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -691,6 +691,16 @@ API.v1.addRoute('users.requestDataDownload', { authRequired: true }, {
},
});

API.v1.addRoute('users.logoutOtherClients', { authRequired: true }, {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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


.smarti #widgetContainer #widgetWrapper #widgetFooter button {

position: relative;
Copy link
Member

Choose a reason for hiding this comment

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


.smarti #widgetContainer #widgetWrapper #widgetHeader h4 {

margin-top: -10px;
Copy link
Member

Choose a reason for hiding this comment

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

@rodrigok
Copy link
Member

@mrsimpson can you update this PR?

@mrsimpson
Copy link
Collaborator Author

@rodrigok this PR is just a technical vehicle to keep track of our custom image. Can you tag this to be ignored so it doesn't show up in your "open community PRs list"?

@sampaiodiego sampaiodiego merged commit 071d72e into RocketChat:develop Sep 9, 2020
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.

7 participants