Skip to content

Commit

Permalink
Temporary fix to exclude lifecycleStatus 'Stengt' [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Oct 15, 2024
1 parent 702542f commit d703b4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SharePointFramework/PortfolioWebParts/src/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ export class DataAdapter implements IPortfolioWebPartsDataAdapter {
users
}
let projects = this._combineResultData(result)
projects = projects.filter((m) => m.lifecycleStatus !== 'Avsluttet')
projects = projects.filter((m) => m.lifecycleStatus !== 'Avsluttet' && m.lifecycleStatus !== 'Stengt')
projects = projects.sort((a, b) => a.title.localeCompare(b.title))
return projects
}
Expand Down
5 changes: 2 additions & 3 deletions SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,9 @@ export class SPDataAdapter
.getByTitle(strings.ProjectsListName)
.items.select(...Object.keys(new SPProjectItem()))
// eslint-disable-next-line quotes
.filter("GtProjectLifecycleStatus ne 'Avsluttet'")
.filter("GtProjectLifecycleStatus ne 'Avsluttet' and GtProjectLifecycleStatus ne 'Stengt'")
.orderBy('Title')
.top(500)
.using(DefaultCaching)<SPProjectItem[]>(),
.using(DefaultCaching).getAll<SPProjectItem>(),
MSGraph.Get<IGraphGroup[]>(
'/me/memberOf/$/microsoft.graph.group',
['id', 'displayName'],
Expand Down

0 comments on commit d703b4e

Please sign in to comment.