Skip to content

Commit

Permalink
Merge up-to-date with main
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgonicholson committed Feb 27, 2025
2 parents 29547a5 + ec57b99 commit 407d4df
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 9 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ smaht-portal
Change Log
----------

0.139.0
0.140.0
=======
`PR 354: SN Release Tracker title <https://github.com/smaht-dac/smaht-portal/pull/354>`_
* 2025-02-21 / dmichaels
Expand All @@ -18,6 +18,13 @@ Change Log
old way of doing it can be accessed using the legacy=true URL query argument.
* Add calcprop to File, `release_tracker_title`, which displays in order of priority `override_release_tracker_title`, `CellCultureMixture.code`, `CellLine.code`, or `Tissue.display_title` for use as a header in the Release Tracker on the home page

0.139.0
=======
`PR 360: fix: add resources to hard-coded disabled breadcrumbs <https://github.com/smaht-dac/smaht-portal/pull/360>`_

* Disable breadcrumbs for resources pages


0.138.0
=======
`PR 351: FileSearchView for type=File search <https://github.com/smaht-dac/smaht-portal/pull/351>`
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "encoded"
version = "0.139.0"
version = "0.140.0"
description = "SMaHT Data Analysis Portal"
authors = ["4DN-DCIC Team <[email protected]>"]
license = "MIT"
Expand Down
5 changes: 3 additions & 2 deletions src/encoded/commands/write_submission_spreadsheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1371,10 +1371,11 @@ def get_comment_search(property_: Property, indent: str) -> List[str]:
If property is file_format, include query for specific File type
"""
search_text = "Use URL to search for the submitted_id or identifer of relevant items"
if property_.search:
if property_.name == "file_format":
return [f"Search:{indent}{property_.search}&valid_item_types={property_.item}"]
return [f"Search:{indent}{property_.search}"]
return [f"{search_text}:{indent}{property_.search}&valid_item_types={property_.item}"]
return [f"{search_text}:{indent}{property_.search}"]
return []


Expand Down
4 changes: 3 additions & 1 deletion src/encoded/schemas/assay.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@
"Hi-C",
"Dip-C",
"Repeat Element Targeted Sequencing",
"ATAC-seq"
"ATAC-seq",
"NT-seq",
"Strand-seq"
]
},
"cell_isolation_method": {
Expand Down
3 changes: 3 additions & 0 deletions src/encoded/schemas/cell_culture.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
}
},
"columns": {
"submitted_id": {
"title": "Submitted ID"
},
"submission_centers.display_title": {
"title": "Submitted By"
},
Expand Down
8 changes: 8 additions & 0 deletions src/encoded/schemas/cell_culture_mixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,13 @@
"submitted_id": {
"pattern": "^[A-Z0-9]{3,}_CELL-CULTURE-MIXTURE_[A-Z0-9-_.]{4,}$"
}
},
"columns": {
"submitted_id": {
"title": "Submitted ID"
},
"submission_centers.display_title": {
"title": "Submitted By"
}
}
}
13 changes: 13 additions & 0 deletions src/encoded/schemas/sample_source.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,18 @@
"type": "integer",
"minimum": 1
}
},
"facets": {
"submission_centers.display_title": {
"title": "Submitted By"
}
},
"columns": {
"submitted_id": {
"title": "Submitted ID"
},
"submission_centers.display_title": {
"title": "Submitted By"
}
}
}
6 changes: 6 additions & 0 deletions src/encoded/schemas/tissue.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@
"facets": {
"submission_centers.display_title": {
"title": "Submitted By"
},
"donor.display_title": {
"title": "Donor"
},
"status": {
"title": "Status"
}
},
"columns": {
Expand Down
8 changes: 6 additions & 2 deletions src/encoded/static/components/PageTitleSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ export class StaticPageBreadcrumbs extends React.Component {
var inner;

// Hard-coded link groups to disable
const breadcrumbsToDisable = ['docs', 'data', 'about'];
const breadcrumbsToDisable = ['docs', 'data', 'about', 'resources'];
const shouldDisable = ancestor.identifier
.split('/')
.some((ancestor) => breadcrumbsToDisable.includes(ancestor));
Expand All @@ -423,7 +423,11 @@ export class StaticPageBreadcrumbs extends React.Component {
} else if (shouldDisable) {
inner = <span>{ancestor.display_title}</span>;
} else {
inner = <a href={ancestor['@id']} className="link-underline-hover">{ancestor.display_title}</a>;
inner = (
<a href={ancestor['@id']} className="link-underline-hover">
{ancestor.display_title}
</a>
);
}
return (
<div
Expand Down
2 changes: 1 addition & 1 deletion src/encoded/tests/test_write_submission_spreadsheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def test_get_ordered_properties(
"Type: string\n"
"Link: Yes\n"
"Required: No\n"
"Search: test.url.com\n"
"Use URL to search for the submitted_id or identifer of relevant items: test.url.com\n"
"Nested: Yes"
),
),
Expand Down

0 comments on commit 407d4df

Please sign in to comment.