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

Increase major #23

Closed
wants to merge 19 commits into from
Closed

Increase major #23

wants to merge 19 commits into from

Conversation

lauragilgz
Copy link
Contributor

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

Copy link
Collaborator

@frantisekrokusek frantisekrokusek left a 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

Comment on lines 9 to 13
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
Copy link
Collaborator

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

Suggested change
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

Comment on lines 9 to 13
operation.unstructured_label = if operation.unstructured_label.nil?
line.detail.strip.to_s
else
"#{operation.unstructured_label}\n#{line.detail.strip}"
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

Suggested change
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

Comment on lines 11 to 15
operation.structured_label = if operation.structured_label.nil?
formatted_label.to_s
else
"#{operation.structured_label}\n#{formatted_label}"
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

Suggested change
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

Comment on lines 9 to 13
operation.free_label = if operation.free_label.nil?
line.detail.strip.to_s
else
"#{operation.free_label}\n#{line.detail.strip}"
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't work ?

Suggested change
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

Copy link
Contributor Author

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 😢

@lauragilgz lauragilgz closed this Oct 31, 2024
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.

3 participants