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

Feat: 3pa Attachment Token Visual #2097

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

haditariq
Copy link
Contributor

Purpose of this PR is to resolve Issues # 189

attachment.token.visual.mp4

  • rather 1-story 1-commi

t than sub-atomic commits

  • commit title is meaningful => git history search

  • commit description is helpful => helps the reviewer to understand the changes

  • code is up-to-date with the latest developments of the target branch (rebased to it or whatever) => ⏩-merge for linear history is favoured

  • added code is linted

  • tests are passing (at least locally): we still have some random test failure on CI. thinking of asking spec/examples.txt to be commited

  • in case the changes are visible to the end-user,  video or screenshots should be added to the PR => helps with user testing

  • testing coverage improvement is improved.

  • CHANGELOG :  add a bullet point on top (optional: reference to github issue/PR )

  • parallele PR for documentation  on docusaurus  if the feature/fix is tagged for a release

@@ -67,8 +72,8 @@ def download_attachment_to_third_party_app
end

# desc: upload file from the third party app
def upload_attachment_from_third_party_app
update_cache(:upload)
def upload_attachment_from_third_party_app(token)

Choose a reason for hiding this comment

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

Metrics/AbcSize: Assignment Branch Condition size for upload_attachment_from_third_party_app is too high. [<1, 26, 4> 26.32/25]


cached_token[key] -= 1
cache.write(cache_key, cached_token)
download_count = cached_token[:download].to_i

Choose a reason for hiding this comment

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

Metrics/AbcSize: Assignment Branch Condition size for update_cache is too high. [<3, 24, 8> 25.48/25]

let(:cached_values) { %w[value_1 value_2 value_3] }

before do
allow_any_instance_of(WardenAuthentication).to receive(:current_user).and_return(user)

Choose a reason for hiding this comment

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

RSpec/AnyInstance: Avoid stubbing using allow_any_instance_of.

Copy link

LCOV of commit 2f25eb0 during Continuous Integration #3604

Summary coverage rate:
  lines......: 65.5% (13992 of 21374 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

Copy link

LCOV of commit fd070fc during Continuous Integration #3605

Summary coverage rate:
  lines......: 65.4% (13987 of 21372 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

Copy link

LCOV of commit 524462a during Continuous Integration #3613

Summary coverage rate:
  lines......: 65.5% (13999 of 21372 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

Copy link

LCOV of commit a09e73e during Continuous Integration #3616

Summary coverage rate:
  lines......: 65.5% (13999 of 21372 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

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