Skip to content

Commit 662da83

Browse files
authored
filter archived github repos into separate section of module list (#4796)
1 parent cf12cd4 commit 662da83

File tree

2 files changed

+45
-36
lines changed

2 files changed

+45
-36
lines changed

docs/dev/modules.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ This page is generated via script `./gradlew :tools:dev:renderModuleDetails`. Se
2828

2929
| Module | Description | Module Status |
3030
|--- |--- |--- |
31+
| [openwhisk](https://github.com/apache/openwhisk) | Apache OpenWhisk is an open source serverless cloud platform | [![Build Status](https://travis-ci.org/apache/openwhisk.svg?branch=master)](https://travis-ci.org/apache/openwhisk) |
3132
| [openwhisk-apigateway](https://github.com/apache/openwhisk-apigateway) | Apache OpenWhisk API Gateway service for exposing actions as REST interfaces. | [![Build Status](https://travis-ci.org/apache/openwhisk-apigateway.svg?branch=master)](https://travis-ci.org/apache/openwhisk-apigateway) |
3233
| [openwhisk-catalog](https://github.com/apache/openwhisk-catalog) | Curated catalog of Apache OpenWhisk packages to interface with event producers and consumers | [![Build Status](https://travis-ci.org/apache/openwhisk-catalog.svg?branch=master)](https://travis-ci.org/apache/openwhisk-catalog) |
3334
| [openwhisk-cli](https://github.com/apache/openwhisk-cli) | Apache OpenWhisk Command Line Interface (CLI) | [![Build Status](https://travis-ci.org/apache/openwhisk-cli.svg?branch=master)](https://travis-ci.org/apache/openwhisk-cli) |
34-
| [openwhisk-composer](https://github.com/apache/openwhisk-composer) | Composer is a new programming model for composing cloud functions built on Apache OpenWhisk. | [![Build Status](https://travis-ci.org/apache/openwhisk-composer.svg?branch=master)](https://travis-ci.org/apache/openwhisk-composer) |
35+
| [openwhisk-composer](https://github.com/apache/openwhisk-composer) | Apache OpenWhisk Composer provides a high-level programming model in JavaScript for composing serverless functions | [![Build Status](https://travis-ci.org/apache/openwhisk-composer.svg?branch=master)](https://travis-ci.org/apache/openwhisk-composer) |
36+
| [openwhisk-composer-python](https://github.com/apache/openwhisk-composer-python) | Apache OpenWhisk Composer Python provides a high-level programming model in Python for composing serverless functions | [![Build Status](https://travis-ci.org/apache/openwhisk-composer-python.svg?branch=master)](https://travis-ci.org/apache/openwhisk-composer-python) |
3537
| [openwhisk-wskdeploy](https://github.com/apache/openwhisk-wskdeploy) | Apache OpenWhisk utility for deploying and managing OpenWhisk projects and packages | [![Build Status](https://travis-ci.org/apache/openwhisk-wskdeploy.svg?branch=master)](https://travis-ci.org/apache/openwhisk-wskdeploy) |
3638

3739

@@ -41,8 +43,6 @@ This page is generated via script `./gradlew :tools:dev:renderModuleDetails`. Se
4143
|--- |--- |--- |
4244
| [openwhisk-client-go](https://github.com/apache/openwhisk-client-go) | Apache OpenWhisk Go client API library | [![Build Status](https://travis-ci.org/apache/openwhisk-client-go.svg?branch=master)](https://travis-ci.org/apache/openwhisk-client-go) |
4345
| [openwhisk-client-js](https://github.com/apache/openwhisk-client-js) | JavaScript client library for the OpenWhisk platform | [![Build Status](https://travis-ci.org/apache/openwhisk-client-js.svg?branch=master)](https://travis-ci.org/apache/openwhisk-client-js) |
44-
| [openwhisk-client-python](https://github.com/apache/openwhisk-client-python) | [DEPRECATED] - REST API of OpenWhisk can be used directly from Python | [![Build Status](https://travis-ci.org/apache/openwhisk-client-python.svg?branch=master)](https://travis-ci.org/apache/openwhisk-client-python) |
45-
| [openwhisk-client-swift](https://github.com/apache/openwhisk-client-swift) | [DEPRECATED] - openwhisk-client-swift is a Swift client SDK for OpenWhisk with support for iOS, WatchOS2, and Darwin CLI apps | [![Build Status](https://travis-ci.org/apache/openwhisk-client-swift.svg?branch=master)](https://travis-ci.org/apache/openwhisk-client-swift) |
4646

4747

4848
## Runtimes
@@ -68,7 +68,6 @@ This page is generated via script `./gradlew :tools:dev:renderModuleDetails`. Se
6868
|--- |--- |--- |
6969
| [openwhisk-deploy-kube](https://github.com/apache/openwhisk-deploy-kube) | The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters. | [![Build Status](https://travis-ci.org/apache/openwhisk-deploy-kube.svg?branch=master)](https://travis-ci.org/apache/openwhisk-deploy-kube) |
7070
| [openwhisk-deploy-mesos](https://github.com/apache/openwhisk-deploy-mesos) | Apache OpenWhisk deployment scripts and configuration files for running under Apache Mesos. | [![Build Status](https://travis-ci.org/apache/openwhisk-deploy-mesos.svg?branch=master)](https://travis-ci.org/apache/openwhisk-deploy-mesos) |
71-
| [openwhisk-deploy-openshift](https://github.com/apache/openwhisk-deploy-openshift) | [DEPRECATED] - This project can be used to deploy Apache OpenWhisk to the OpenShift platform | [![Build Status](https://travis-ci.org/apache/openwhisk-deploy-openshift.svg?branch=master)](https://travis-ci.org/apache/openwhisk-deploy-openshift) |
7271

7372

7473
## Packages
@@ -78,34 +77,23 @@ This page is generated via script `./gradlew :tools:dev:renderModuleDetails`. Se
7877
| [openwhisk-package-alarms](https://github.com/apache/openwhisk-package-alarms) | Apache OpenWhisk package that can be used to create periodic, time-based alarms | [![Build Status](https://travis-ci.org/apache/openwhisk-package-alarms.svg?branch=master)](https://travis-ci.org/apache/openwhisk-package-alarms) |
7978
| [openwhisk-package-cloudant](https://github.com/apache/openwhisk-package-cloudant) | The /whisk.system/cloudant package enables you to work with a Cloudant database | [![Build Status](https://travis-ci.org/apache/openwhisk-package-cloudant.svg?branch=master)](https://travis-ci.org/apache/openwhisk-package-cloudant) |
8079
| [openwhisk-package-deploy](https://github.com/apache/openwhisk-package-deploy) | Apache openwhisk | [![Build Status](https://travis-ci.org/apache/openwhisk-package-deploy.svg?branch=master)](https://travis-ci.org/apache/openwhisk-package-deploy) |
81-
| [openwhisk-package-jira](https://github.com/apache/openwhisk-package-jira) | [DEPRECATED] - Interact with JIRA software software development tool used for issue tracking, and project management functions | [![Build Status](https://travis-ci.org/apache/openwhisk-package-jira.svg?branch=master)](https://travis-ci.org/apache/openwhisk-package-jira) |
8280
| [openwhisk-package-kafka](https://github.com/apache/openwhisk-package-kafka) | Apache OpenWhisk package for communicating with Kafka or Message Hub | [![Build Status](https://travis-ci.org/apache/openwhisk-package-kafka.svg?branch=master)](https://travis-ci.org/apache/openwhisk-package-kafka) |
8381
| [openwhisk-package-pushnotifications](https://github.com/apache/openwhisk-package-pushnotifications) | OpenWhisk Package for Bluemix Push Notifications Service | [![Build Status](https://travis-ci.org/apache/openwhisk-package-pushnotifications.svg?branch=master)](https://travis-ci.org/apache/openwhisk-package-pushnotifications) |
84-
| [openwhisk-package-rss](https://github.com/apache/openwhisk-package-rss) | [DEPRECATED] - RSS feed package | [![Build Status](https://travis-ci.org/apache/openwhisk-package-rss.svg?branch=master)](https://travis-ci.org/apache/openwhisk-package-rss) |
85-
| [openwhisk-package-template](https://github.com/apache/openwhisk-package-template) | [DEPRECATED] - This is a template to be use when creating new packages for OpenWhisk | [![Build Status](https://travis-ci.org/apache/openwhisk-package-template.svg?branch=master)](https://travis-ci.org/apache/openwhisk-package-template) |
82+
| [openwhisk-pluggable-provider](https://github.com/apache/openwhisk-pluggable-provider) | Apache OpenWhisk pluggable trigger feed event provider | [![Build Status](https://travis-ci.org/apache/openwhisk-pluggable-provider.svg?branch=master)](https://travis-ci.org/apache/openwhisk-pluggable-provider) |
8683

8784

8885
## Samples and Examples
8986

9087
| Module | Description |
9188
|--- |--- |
92-
| [openwhisk-GitHubSlackBot](https://github.com/apache/openwhisk-GitHubSlackBot) | [DEPRECATED] - Demonstration of integration of GitHub Pull Request management with Slack and using Alarms |
93-
| [openwhisk-sample-matos](https://github.com/apache/openwhisk-sample-matos) | [DEPRECATED] - sample application with Message Hub and Object Store |
94-
| [openwhisk-sample-slackbot](https://github.com/apache/openwhisk-sample-slackbot) | [DEPRECATED] - A proof-of-concept Slackbot to invoke OpenWhisk actions. |
9589
| [openwhisk-slackinvite](https://github.com/apache/openwhisk-slackinvite) | Invite for Apache OpenWhisk Team on Slack |
96-
| [openwhisk-tutorial](https://github.com/apache/openwhisk-tutorial) | [DEPRECATED] - An interactive learning environment for the Apache OpenWhisk command line |
97-
| [openwhisk-workshop](https://github.com/apache/openwhisk-workshop) | [DEPRECATED] - OpenWhisk workshop to help developers learn how to build serverless applications using the platform. |
9890

9991

10092
## Development Tools
10193

10294
| Module | Description |
10395
|--- |--- |
104-
| [openwhisk-debugger](https://github.com/apache/openwhisk-debugger) | [DEPRECATED] - The OpenWhisk debugger project |
10596
| [openwhisk-devtools](https://github.com/apache/openwhisk-devtools) | Development tools for building and deploying Apache OpenWhisk |
106-
| [openwhisk-playground](https://github.com/apache/openwhisk-playground) | [DEPRECATED] - This library provides functionality of executing a snippet of source code as OpenWhisk action for OpenWhisk Xcode Source Editor Extension |
107-
| [openwhisk-vscode](https://github.com/apache/openwhisk-vscode) | [DEPRECATED] - Visual Studio Code extension (prototype) for authoring OpenWhisk actions inside the editor. |
108-
| [openwhisk-xcode](https://github.com/apache/openwhisk-xcode) | [DEPRECATED] - Collection of OpenWhisk tools for OS X implemented in Swift 3. |
10997

11098

11199
## Utilities
@@ -120,13 +108,31 @@ This page is generated via script `./gradlew :tools:dev:renderModuleDetails`. Se
120108

121109
| Module | Description |
122110
|--- |--- |
123-
| [openwhisk](https://github.com/apache/openwhisk) | Apache OpenWhisk is an open source serverless cloud platform |
124-
| [openwhisk-composer-python](https://github.com/apache/openwhisk-composer-python) | Composer for Python is a new programming model for composing cloud functions built on Apache OpenWhisk (Incubating) |
125111
| [openwhisk-external-resources](https://github.com/apache/openwhisk-external-resources) | ✨ Curated list of awesome OpenWhisk things ✨ |
126-
| [openwhisk-pluggable-provider](https://github.com/apache/openwhisk-pluggable-provider) | Apache OpenWhisk pluggable trigger feed event provider |
127-
| [openwhisk-podspecs](https://github.com/apache/openwhisk-podspecs) | [DEPRECATED] - CocoaPods Podspecs repo for openwhisk-client-swift |
128-
| [openwhisk-selfserve-test](https://github.com/apache/openwhisk-selfserve-test) | [DEPRECATED] - Apache openwhisk |
129112
| [openwhisk-test](https://github.com/apache/openwhisk-test) | Test repo. for Apache OpenWhisk client-side tooling. |
130113
| [openwhisk-website](https://github.com/apache/openwhisk-website) | Apache OpenWhisk website (openwhisk.incubator.apache.org) code built using Jekyll |
131114

132115

116+
## Archived
117+
118+
| Module | Description |
119+
|--- |--- |
120+
| [openwhisk-GitHubSlackBot](https://github.com/apache/openwhisk-GitHubSlackBot) | [DEPRECATED] - Demonstration of integration of GitHub Pull Request management with Slack and using Alarms |
121+
| [openwhisk-client-python](https://github.com/apache/openwhisk-client-python) | [DEPRECATED] - REST API of OpenWhisk can be used directly from Python |
122+
| [openwhisk-client-swift](https://github.com/apache/openwhisk-client-swift) | [DEPRECATED] - openwhisk-client-swift is a Swift client SDK for OpenWhisk with support for iOS, WatchOS2, and Darwin CLI apps |
123+
| [openwhisk-debugger](https://github.com/apache/openwhisk-debugger) | [DEPRECATED] - The OpenWhisk debugger project |
124+
| [openwhisk-deploy-openshift](https://github.com/apache/openwhisk-deploy-openshift) | [DEPRECATED] - This project can be used to deploy Apache OpenWhisk to the OpenShift platform |
125+
| [openwhisk-package-jira](https://github.com/apache/openwhisk-package-jira) | [DEPRECATED] - Interact with JIRA software software development tool used for issue tracking, and project management functions |
126+
| [openwhisk-package-rss](https://github.com/apache/openwhisk-package-rss) | [DEPRECATED] - RSS feed package |
127+
| [openwhisk-package-template](https://github.com/apache/openwhisk-package-template) | [DEPRECATED] - This is a template to be use when creating new packages for OpenWhisk |
128+
| [openwhisk-playground](https://github.com/apache/openwhisk-playground) | [DEPRECATED] - This library provides functionality of executing a snippet of source code as OpenWhisk action for OpenWhisk Xcode Source Editor Extension |
129+
| [openwhisk-podspecs](https://github.com/apache/openwhisk-podspecs) | [DEPRECATED] - CocoaPods Podspecs repo for openwhisk-client-swift |
130+
| [openwhisk-sample-matos](https://github.com/apache/openwhisk-sample-matos) | [DEPRECATED] - sample application with Message Hub and Object Store |
131+
| [openwhisk-sample-slackbot](https://github.com/apache/openwhisk-sample-slackbot) | [DEPRECATED] - A proof-of-concept Slackbot to invoke OpenWhisk actions. |
132+
| [openwhisk-selfserve-test](https://github.com/apache/openwhisk-selfserve-test) | [DEPRECATED] - Apache openwhisk |
133+
| [openwhisk-tutorial](https://github.com/apache/openwhisk-tutorial) | [DEPRECATED] - An interactive learning environment for the Apache OpenWhisk command line |
134+
| [openwhisk-vscode](https://github.com/apache/openwhisk-vscode) | [DEPRECATED] - Visual Studio Code extension (prototype) for authoring OpenWhisk actions inside the editor. |
135+
| [openwhisk-workshop](https://github.com/apache/openwhisk-workshop) | [DEPRECATED] - OpenWhisk workshop to help developers learn how to build serverless applications using the platform. |
136+
| [openwhisk-xcode](https://github.com/apache/openwhisk-xcode) | [DEPRECATED] - Collection of OpenWhisk tools for OS X implemented in Swift 3. |
137+
138+

tools/dev/src/main/groovy/CategoryManager.groovy

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,24 @@ import java.util.function.Predicate
1919

2020
class CategoryManager {
2121
def categories = process([
22-
[name: "Main", travis: true, suffixes: ['openwhisk', 'apigateway', 'catalog', 'cli', 'wskdeploy', 'composer']],
23-
[name: "Clients", travis: true, contains: ['-client-']],
24-
[name: "Runtimes", travis: true, contains: ['-runtime-']],
25-
[name: "Deployments", travis: true, contains: ['-deploy-']],
26-
[name: "Packages", travis: true, contains: ['-package-']],
27-
[name: "Samples and Examples", travis: false, suffixes: ['workshop', 'slackinvite', 'sample-slackbot', 'sample-matos', 'tutorial', 'GitHubSlackBot']],
28-
[name: "Development Tools", travis: false, suffixes: ['devtools', 'xcode', 'vscode', 'playground', 'debugger']],
29-
[name: "Utilities", travis: false, suffixes: ['utilities', 'release']],
30-
[name: "Others", travis: false]
22+
[name: "Main", travis: true, archived: false, suffixes: ['openwhisk', 'apigateway', 'catalog', 'cli', 'wskdeploy', 'composer', 'composer-python']],
23+
[name: "Clients", travis: true, archived: false, contains: ['-client-']],
24+
[name: "Runtimes", travis: true, archived: false, contains: ['-runtime-']],
25+
[name: "Deployments", travis: true, archived: false, contains: ['-deploy-']],
26+
[name: "Packages", travis: true, archived: false, contains: ['-package-', '-provider']],
27+
[name: "Samples and Examples", travis: false, archived: false, suffixes: ['workshop', 'slackinvite', 'sample-slackbot', 'sample-matos', 'tutorial', 'GitHubSlackBot']],
28+
[name: "Development Tools", travis: false, archived: false, suffixes: ['devtools', 'xcode', 'vscode', 'playground', 'debugger']],
29+
[name: "Utilities", travis: false, archived: false, suffixes: ['utilities', 'release']],
30+
[name: "Others", travis: false, archived: false],
31+
[name: "Archived", travis: false, archived: true]
3132
])
3233

3334
private def suffixMatcher(List<String> suffixes) {
34-
return {name -> suffixes.any {name.endsWith("-"+it)}} as Predicate<String>
35+
return {name -> suffixes.any {name.endsWith(it)}} as Predicate<String>
3536
}
3637

37-
private def containsMatcher(String marker) {
38-
return {name -> name.contains(marker)} as Predicate<String>
38+
private def containsMatcher(List<String> marker) {
39+
return {name -> marker.any {name.contains(it)}} as Predicate<String>
3940
}
4041

4142
private def createMatcher(Map m){
@@ -45,11 +46,11 @@ class CategoryManager {
4546
}
4647

4748
private def process(List<Map> repos) {
48-
repos.collect {m -> new Category(m.name, m.travis, createMatcher(m))}
49+
repos.collect {m -> new Category(m.name, m.travis, m.archived, createMatcher(m))}
4950
}
5051

5152
def addToCategory(repo) {
52-
categories.find {c -> c.matches(repo.name)}.addRepo(repo)
53+
categories.find {c -> c.matches(repo.name) && c.archived == repo.archived}.addRepo(repo)
5354
}
5455

5556
def sort(){
@@ -60,12 +61,14 @@ class CategoryManager {
6061
class Category {
6162
String name
6263
boolean travisEnabled
64+
boolean archived
6365
List repos = []
6466
Predicate<String> matcher
6567

66-
Category(name, travisEnabled, matcher) {
68+
Category(name, travisEnabled, archived, matcher) {
6769
this.name = name
6870
this.travisEnabled = travisEnabled
71+
this.archived = archived
6972
this.matcher = matcher
7073
}
7174

0 commit comments

Comments
 (0)