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

master-v2 #49

Merged
merged 137 commits into from
May 17, 2023
Merged

master-v2 #49

merged 137 commits into from
May 17, 2023

Conversation

cookie-s
Copy link
Member

@cookie-s cookie-s commented Apr 30, 2023

ちなみにdevcontainerがなんなのか僕は知りません

歴史的経緯

  • tyage/slack-patronがありました
  • tsg-ut/slack-patronがそれをforkし、独自発展を遂げました
  • tyage/slack-patronが、Take tsg-ut/slack-patron into this repo tyage/slack-patron#127 あたりでそれをがんばって取り込みました
  • なので一旦はおおむね揃ったんですけど、やっぱりtyage/slack-patronもtsg-ut/slack-patronも独自発展を遂げています

こちらもtyage/slack-patronとそれなりにそろえておかないと、お互い厄介度が増していくんじゃないかなぁと思ったので、ここらでtyage/slack-patronのmasterを取り込んでおこうかなあと思ったものです。

このPR HEADの作られ方

このPRのHEAD commitは、tyage/slack-patron:master (e07345b) から、branchを切って、tsg-ut/slack-patron:master (f3dbade)をmergeされるcommitにしたものです。

git diffを目で眺めて、一生懸命、良さそうな方を選択しました。選択の方針は、

  • Gemfile.lock, package-lock.jsonについては、怖いのでtsg-utを選択する。Gemfileおよびpackage.jsonは両者同一であることに注意します。(tyage/slack-patronはDependabotをしばしば取り入れているため、lock fileはtsg-utのほうが基本的に遅れてはいます。)
  • どちらか一方のみに存在するファイルについては、基本的に残す。
  • 追加されただけの行については、たぶん残した方がいい。
  • conflictする場合、tsg-utのほうを残した方が良い場合が多い。tyage/slack-patronがtsg-ut/slack-patronを取り込んでから、CIやdocumentの整備はされましたが、機能追加/変更はそこまで多くありません。tsg-utの方が多いです。
    • Dockerfile/docker-compose.yamlについては、tsg-ut/slack-patronはvolumeをマウントして外側最新のスクリプトを利用する方針だが、tyage/slack-patronはDockerfile ADD/COPY命令でcontainerの中に埋め込む方針。これについてはtsg-ut側を引き継ぐ。
    • tyage/slack-patronではlib/config.rbが追加され、config情報の指定および取得の仕方が若干変わった。これは取り込む。

今後の方針

このPR #49#50 が良さそうだった暁には、

  1. master-v2: Remove container publish #50 をこの master-v2 branchにマージ
  2. master branchを master-old branchに改名
  3. master-v2 branchを master branchに改名
  4. 100年後くらいに、master-old branchの削除

というような感じで考えています。

このPRの"Merge"ボタンが押されることはない予定です。GitHubのMergeボタンを押したときどうなるか、わかんなくてこわいので。

tyage and others added 30 commits August 24, 2019 19:31
limit count query size in viewer
Bumps [rubyzip](https://github.com/rubyzip/rubyzip) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/rubyzip/rubyzip/releases)
- [Changelog](https://github.com/rubyzip/rubyzip/blob/master/Changelog.md)
- [Commits](rubyzip/rubyzip@v1.2.2...v1.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [rack](https://github.com/rack/rack) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/master/CHANGELOG.md)
- [Commits](rack/rack@2.0.7...2.0.8)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.11...4.17.13)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](jonschlinkert/mixin-deep@1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.4 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.4...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
…/lodash-4.17.13

Bump lodash from 4.17.11 to 4.17.13 in /viewer
…/mixin-deep-1.3.2

Bump mixin-deep from 1.3.1 to 1.3.2 in /viewer
Bumps [jquery](https://github.com/jquery/jquery) from 3.2.1 to 3.4.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](jquery/jquery@3.2.1...3.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
…/lodash-es-4.17.15

Bump lodash-es from 4.17.4 to 4.17.15 in /viewer
…/jquery-3.4.0

Bump jquery from 3.2.1 to 3.4.0 in /viewer
Bumps [jquery](https://github.com/jquery/jquery) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](jquery/jquery@3.4.0...3.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [rack](https://github.com/rack/rack) from 2.0.8 to 2.2.3.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/master/CHANGELOG.md)
- [Commits](rack/rack@2.0.8...2.2.3)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.0 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](indutny/elliptic@v6.4.0...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.14 to 0.7.28.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Commits](faisalman/ua-parser-js@0.7.14...0.7.28)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.14 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@7.0.14...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…r/jquery-3.5.0

Bump jquery from 3.4.0 to 3.5.0 in /viewer
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.13 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.13...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
…extensions-0.1.5

Bump websocket-extensions from 0.1.3 to 0.1.5
Bumps [json](https://github.com/flori/json) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/flori/json/releases)
- [Changelog](https://github.com/flori/json/blob/master/CHANGES.md)
- [Commits](flori/json@v2.2.0...v2.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
Comment on lines 45 to 70
formatText(text) {
const entity = (str) => {
return str.replace(/"/g, "&quot;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;");
};
const channelLink = (id) => {
const channel = this.getChannel(id);
return `#${channel && channel.name}`;
};
const userLink = (id) => {
const user = this.getUser(id);
return `@${user && user.name}`;
};
const specialCommand = (command) => `@${command}`;
const uriLink = (uri) => `<a href="${uri}" target="_blank">${uri}</a>`;
if (text) {
return text.replace(/<#([0-9A-Za-z]+)>/, (m, id) => channelLink(id))
.replace(/<#([0-9A-Za-z]+)\|([0-9A-Za-z]+)>/gi, (m, id) => channelLink(id))
.replace(/<@([0-9A-Za-z]+)>/gi, (m, id) => userLink(id))
.replace(/<@([0-9A-Za-z]+)\|([0-9A-Za-z]+)>/gi, (m, id) => userLink(id))
.replace(/<!(channel|everyone|group)>/gi, (m, command) => specialCommand(command))
.replace(/<([a-z0-9]+:\/\/[^>]*)>/gi, (m, uri) => uriLink(entity(uri)));
}
return text;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

tyage/slack-patronにあるんですけど、必要性がよくわかりませんでした。だれも参照してなくない?

@cookie-s cookie-s marked this pull request as ready for review April 30, 2023 01:38
@hakatashi
Copy link
Member

このPRの"Merge"ボタンが押されることはない予定です。

別にMergeしてよさそう。というか、renameがめんどくさいのでマージしたい

ちなみに、僕個人の意見としては、別にtyage/slack-patronとtsg-ut/slack-patronで同期する必要はないかな~と思っています。それぞれ取り入れたい機能は違うし、別のアプリケーションとみなしてよいのではと

@cookie-s
Copy link
Member Author

同期する必要はないかな~と思っています

まあだいぶわかるな わざわざし続ける必要はないし、あんまりお互いのこと考える必要はない

じゃあこのPRマージだけします
実はlib/configのなにかは、あるんだったら取り込みたい機能だった

@tyage
Copy link

tyage commented May 1, 2023

自分が使わなくなっちゃったこともあってtyage/slack-patronのほう全然触れてなくて申し訳ないんですが、
別々に進むともったいないのでslack-patron organization作って今ちゃんと使ってる人にメンテしてもらったほうがいいかなと思ってるんですがどうでしょうか。

とはいえTSG内部向けのもの追加するのであれば結局forkで作業したほうが楽ですかね...?

@cookie-s
Copy link
Member Author

んーforkで作業したほうが楽なのは間違いないですねー

@tyage
Copy link

tyage commented May 13, 2023

ほなまあ別にこのままでいいか。
お騒がせしました

@cookie-s cookie-s merged commit cc73bbd into master May 17, 2023
3 checks passed
@cookie-s cookie-s deleted the master-v2 branch May 17, 2023 01:24
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.

None yet

4 participants