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

Stop showing vLex sposnsorship banner appropriately #3637

Closed
mlissner opened this issue Jan 19, 2024 · 0 comments · Fixed by #4777
Closed

Stop showing vLex sposnsorship banner appropriately #3637

mlissner opened this issue Jan 19, 2024 · 0 comments · Fixed by #4777
Assignees

Comments

@mlissner
Copy link
Member

Our contract with vlex requires that we put a banner on every opinion that we add during the contract, and then keep those banners up for three years from the date the banner first goes up. Our contract ends on January 31.

Right now, the code reads:

    # Identify opinions updated/added in partnership with v|lex for 3 years
    sponsored = False
    if (
        cluster.date_created.date() > datetime.datetime(2022, 6, 1).date()
        and cluster.filepath_json_harvard
    ):
        sponsored = True

So this should be changed to only do items created between 2022/6/1 and 2024/01/31, and should be modified to do nothing for any case that was created more than three years ago.

Something like:

if creation-date more than three years ago:
    sponsored = False
elif  2022-6-1 < creation-date < 2024-01-31:
    sponsored = True

I think that's right!

@flooie flooie moved this to General Backlog in Case Law Sprint Nov 19, 2024
@flooie flooie moved this from General Backlog to Backlog Dec 2-13 in Case Law Sprint Dec 2, 2024
@flooie flooie self-assigned this Dec 2, 2024
@flooie flooie moved this from Backlog Dec 2-13 to Blocked in Case Law Sprint Dec 3, 2024
@github-project-automation github-project-automation bot moved this from Blocked to Done in Case Law Sprint Dec 4, 2024
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in @flooie's backlog Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants