• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cofacts / rumors-line-bot / 7465466044
91%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2024 06:42PM UTC
Jobs 1
Files 59
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jan 2024 06:40PM UTC coverage: 87.795% (-4.1%) from 91.928%
7465466044

push

github

web-flow
Handle submitting multiple messages (cooccurrences) at once (#379)

## Feature

This PR implements the items with yellow highlight.
We should probably ignore Items with red highlight in the future.
<img src="https://docs.google.com/drawings/d/e/2PACX-1vQszlkE2JfgpnoLVfYIcOiL5nFjH60XYxO-vdQ9ECvttvRHNJJCTbONcITcCl9dZY97-nbcMLq6_HE8/pub?w=1696&amp;h=998">

Implement `askingCooccurrences` handler and connect to `processBatch`
- Design doc: https://g0v.hackmd.io/@cofacts/rd/%2Ff_Ze19PhQuqx_fzOAOkohQ
- `processBatch` asks if messages were sent together by the same person
- `askingCooccurrences` handler handles the user's response.
- Includes translation
- No tests yet

## Refactors

Change `askingArticleSubmissionConsent`'s input from Yes/No to an array of index
- ranges from 0 ~ context.msgs.length - 1
- indicates the `context.msgs` that does not in DB and is asking for user's consent for submission
- If the user rejects, input of `askingArticleSubmissionConsent` is an empty array
- updates snapshots of action inputs and related logic

Revamp logic of `askingArticleSubmissionConsent`
- Before this PR, the handler only processes the first message in `context.msgs`
- The new logic would 
    1. submits multiple messages to database according to the input
    2. create `UserArticleLink` for newly created messages
        - For existing messages, the user article link will be created when the user selects the message in search results
    3. if multiple messages, set cooccurrences and show search results; otherwise, show creation results

498 of 608 branches covered (0.0%)

Branch coverage included in aggregate %.

1027 of 1129 relevant lines covered (90.97%)

12.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7465466044.1 09 Jan 2024 06:42PM UTC 0
87.8
GitHub Action Run
Source Files on build 7465466044
Detailed source file information is not available for this build.
  • Back to Repo
  • 3f0b28c6 on github
  • Prev Build on master (#7465452571)
  • Next Build on master (#7477797916)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc