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

Third attempt to explore CI failures #407

Closed
wants to merge 50 commits into from
Closed

Third attempt to explore CI failures #407

wants to merge 50 commits into from

Conversation

amstilp
Copy link
Contributor

@amstilp amstilp commented Oct 23, 2023

No description provided.

wkirdp and others added 30 commits September 14, 2023 17:41
Add filter.py, define the filter for BillingProjects
Modify billingproject_list.html to include the filter form
Add BillingProjectFilter to BillingProjectList view.
Add filter to ManageGroupList view
Add the FilterSet to managedgroup_list template
Add tests
Add filter to WorkspaceList view and WorkspaceListByType view
Add filter form on workspace_list template
Add tests for WorkspaceList view and WorkspaceListByType view
Add AccountList filter to AccountList, AccountActiveList and AccountInactiveList views
Add filter form to account_list template
Add tests for  AccountList, AccountActiveList and AccountInactiveList views
This custom form uses the crispy_form package's layout objects to
manipulate the placement and apperance of forms. In particular, it
displays the form fields on a single line, including the submit
button, with floating labels. This takes up a smaller footprint
and is less intrusive compared to the previous standard way of
displaying the form.
Pass in query parameter instead of manually appending to the url
Modify tests to be testing more specific things (exact match,
contains match, icontains match, multiple objects). For some views,
also check that other objects are excluded when appropriate (eg that
inactive accounts do not show up in the active account view filter).
This is the same form that was implemented for BillingProjectListFilter.
Missed this one when I was updating the other templates.
This lets the user customize the filterset_class used in the
AccountList view. (Example: a project using this app wants to allow
people to search on both the account email and the user name
associated with the account.)
Add an AccountAdapterMixin, which sets the adapter attribute of
the view class. It also contains reusable methods to get information
from the adapter (e.g., the list class and the filterset class).
Use this mixin for all of the AccountList views, which uses the
list_filterset_class defined by whichever account adapter is set
by the project settings file.
Tests fail with any version < 2.3.0.
Mostly this includes setting the PIP_NO_CACHE_DIR environment
variable. I'm not sure why it was working in the other branch, or
if it will definitely fix it here.
The previous commit used the working CI file, but I forgot to add
the corresponding tox file. Hopefully this works.
@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Merging #407 (12f196f) into main (63ba24c) will increase coverage by 0.00%.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##             main     #407    +/-   ##
========================================
  Coverage   99.82%   99.82%            
========================================
  Files         119      121     +2     
  Lines       22335    22795   +460     
========================================
+ Hits        22295    22755   +460     
  Misses         40       40            
Files Coverage Δ
anvil_consortium_manager/__init__.py 100.00% <100.00%> (ø)
anvil_consortium_manager/adapters/account.py 100.00% <100.00%> (ø)
anvil_consortium_manager/adapters/default.py 100.00% <100.00%> (ø)
anvil_consortium_manager/filters.py 100.00% <100.00%> (ø)
...mplates/anvil_consortium_manager/account_list.html 100.00% <100.00%> (ø)
.../anvil_consortium_manager/billingproject_list.html 100.00% <100.00%> (ø)
...es/anvil_consortium_manager/managedgroup_list.html 100.00% <100.00%> (ø)
...lates/anvil_consortium_manager/workspace_list.html 100.00% <100.00%> (ø)
anvil_consortium_manager/tests/test_adapters.py 100.00% <100.00%> (ø)
...nvil_consortium_manager/tests/test_app/adapters.py 100.00% <100.00%> (ø)
... and 4 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@amstilp
Copy link
Contributor Author

amstilp commented Oct 24, 2023

Finally figured out a potential solution; added separately to the search PR #393

@amstilp amstilp closed this Oct 24, 2023
@amstilp amstilp deleted the explore-ci-3 branch February 29, 2024 22:22
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