-
Notifications
You must be signed in to change notification settings - Fork 54
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
.
LCOV of commit
|
LCOV of commit
|
…chemotion_ELN into attachment-token-visual
LCOV of commit
|
LCOV of commit
|
Purpose of this PR is to resolve Issues # 189
attachment.token.visual.mp4
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