-
Notifications
You must be signed in to change notification settings - Fork 1
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
Increase major #23
Increase major #23
Conversation
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.
Before we merge, let's
- update the documentation
- add operation_details attribute on operation with all the codes
lib/cfonb/operation_detail/lc2.rb
Outdated
operation.unstructured_label_2 = if operation.unstructured_label_2.nil? | ||
line.detail.strip.to_s | ||
else | ||
"#{operation.unstructured_label_2}\n#{line.detail.strip}" | ||
end |
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.
I think there can only be one line of this
operation.unstructured_label_2 = if operation.unstructured_label_2.nil? | |
line.detail.strip.to_s | |
else | |
"#{operation.unstructured_label_2}\n#{line.detail.strip}" | |
end | |
operation.unstructured_label_2 = line.detail.strip |
lib/cfonb/operation_detail/lcc.rb
Outdated
operation.unstructured_label = if operation.unstructured_label.nil? | ||
line.detail.strip.to_s | ||
else | ||
"#{operation.unstructured_label}\n#{line.detail.strip}" | ||
end |
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.
same here
operation.unstructured_label = if operation.unstructured_label.nil? | |
line.detail.strip.to_s | |
else | |
"#{operation.unstructured_label}\n#{line.detail.strip}" | |
end | |
operation.unstructured_label = line.detail.strip |
lib/cfonb/operation_detail/lcs.rb
Outdated
operation.structured_label = if operation.structured_label.nil? | ||
formatted_label.to_s | ||
else | ||
"#{operation.structured_label}\n#{formatted_label}" | ||
end |
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.
same here
operation.structured_label = if operation.structured_label.nil? | |
formatted_label.to_s | |
else | |
"#{operation.structured_label}\n#{formatted_label}" | |
end | |
operation.structured_label = formatted_label |
lib/cfonb/operation_detail/lib.rb
Outdated
operation.free_label = if operation.free_label.nil? | ||
line.detail.strip.to_s | ||
else | ||
"#{operation.free_label}\n#{line.detail.strip}" | ||
end |
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.
This doesn't work ?
operation.free_label = if operation.free_label.nil? | |
line.detail.strip.to_s | |
else | |
"#{operation.free_label}\n#{line.detail.strip}" | |
end | |
operation.free_label += if operation.free_label.nil? | |
line.detail.strip | |
else | |
"\n#{line.detail.strip}" | |
end |
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.
I modified it since free_label
can be nil because it is not part of the base attributes, and then we cannot concatenate the string 😢
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…il_code value setting
…' into Increase-major
Add more granularity to the Operation details, and separate what was being returned in label in the corresponding free_label, structured_label, structured_label_2 or the original label