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

enable italicisation of portion #2312

Merged
merged 30 commits into from
Jan 17, 2025
Merged

enable italicisation of portion #2312

merged 30 commits into from
Jan 17, 2025

Conversation

goose-life
Copy link
Contributor

if we're happy with this approach here, we can attempt to follow it for the sentence caser and more importantly the pit differ

Copy link

github-actions bot commented Dec 13, 2024

Test Results

569 tests  +1   569 ✅ +1   4m 39s ⏱️ +28s
 60 suites ±0     0 💤 ±0 
 60 files   ±0     0 ❌ ±0 

Results for commit a59dc52. ± Comparison against base commit 4a59281.

♻️ This comment has been updated with latest results.

@goose-life
Copy link
Contributor Author

references requires laws-africa/docpipe#19

longhotsummer
longhotsummer previously approved these changes Jan 13, 2025
Copy link
Contributor

@longhotsummer longhotsummer left a comment

Choose a reason for hiding this comment

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

Looks good.

I realised on friday that another aspect which can change is the expression date, but none of our server-side components care about that (and it is complicated if they do), so for now I think it's fine to leave it out.

@goose-life
Copy link
Contributor Author

@goose-life
Copy link
Contributor Author

def fix_terms_in_document(self, document):
""" Do everything other than guessing at defined terms in a Document.
Run this before saving an updated document when a portion was edited separately.
def link_terms_in_provision(self, document):
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: this method name doesn't make senses in this context, because there's no provision information. link_terms_in_document or find_term_usages_in_document or something would make more sense to me.

@@ -109,7 +109,7 @@ <h5 class="main-header-title">
</div>

{% include "indigo_api/document/_revisions.html" %}
{% include "indigo_api/document/_defined_terms.html" %}
{% include "indigo_api/document/_defined_terms.html" with provision_eid=provision_eid %}
Copy link
Contributor

Choose a reason for hiding this comment

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

the with is unnecessary, the context always passed to the included template

@goose-life goose-life merged commit 3647062 into master Jan 17, 2025
5 checks passed
@goose-life goose-life deleted the portion branch January 17, 2025 08:39
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