Skip to content

Commit 6ca3489

Browse files
duckdegenclaude
andcommitted
Replace ethSeasonOfInternships filter with expertJobs filter
The expertJobs filter shows jobs where access === "protected" instead of filtering by the ethSeasonOfInternships field. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a62aa34 commit 6ca3489

File tree

8 files changed

+26
-26
lines changed

8 files changed

+26
-26
lines changed

src/ecosystems/ecosystems.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ export class EcosystemsService {
11311131
commitments: commitmentFilterList,
11321132
token,
11331133
onboardIntoWeb3,
1134-
ethSeasonOfInternships,
1134+
expertJobs,
11351135
query,
11361136
order,
11371137
orderBy,
@@ -1340,8 +1340,8 @@ export class EcosystemsService {
13401340
(!commitmentFilterList ||
13411341
commitmentFilterList.includes(slugify(commitment))) &&
13421342
(onboardIntoWeb3 === null || jlr.onboardIntoWeb3 === onboardIntoWeb3) &&
1343-
(ethSeasonOfInternships === null ||
1344-
jlr.ethSeasonOfInternships === ethSeasonOfInternships) &&
1343+
(expertJobs === null ||
1344+
(jlr.access === "protected") === expertJobs) &&
13451345
(!query || matchesQuery) &&
13461346
(!tagFilterList ||
13471347
tags.filter(tag => tagFilterList.includes(slugify(tag.name))).length >

src/jobs/dto/job-list.input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export class JobListParams {
231231
value === "true" ? true : value === "false" ? false : value,
232232
)
233233
@IsBoolean()
234-
ethSeasonOfInternships?: boolean | null = null;
234+
expertJobs?: boolean | null = null;
235235

236236
@ApiPropertyOptional({
237237
enum: ["asc", "desc"],

src/jobs/jobs.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ export class JobsService {
579579
ecosystems: ecosystemFilterList,
580580
token,
581581
onboardIntoWeb3,
582-
ethSeasonOfInternships,
582+
expertJobs,
583583
query,
584584
order,
585585
orderBy,
@@ -790,8 +790,8 @@ export class JobsService {
790790
(!commitmentFilterList ||
791791
commitmentFilterList.includes(slugify(commitment))) &&
792792
(onboardIntoWeb3 === null || jlr.onboardIntoWeb3 === onboardIntoWeb3) &&
793-
(ethSeasonOfInternships === null ||
794-
jlr.ethSeasonOfInternships === ethSeasonOfInternships) &&
793+
(expertJobs === null ||
794+
(jlr.access === "protected") === expertJobs) &&
795795
(!query || matchesQuery) &&
796796
(!tagFilterList ||
797797
tags.filter(tag => tagFilterList.includes(slugify(tag.name))).length >

src/public/public.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export class PublicService {
230230
ecosystems: ecosystemFilterList,
231231
token,
232232
onboardIntoWeb3,
233-
ethSeasonOfInternships,
233+
expertJobs,
234234
query,
235235
order,
236236
orderBy,
@@ -440,8 +440,8 @@ export class PublicService {
440440
(!commitmentFilterList ||
441441
commitmentFilterList.includes(slugify(commitment))) &&
442442
(onboardIntoWeb3 === null || jlr.onboardIntoWeb3 === onboardIntoWeb3) &&
443-
(ethSeasonOfInternships === null ||
444-
jlr.ethSeasonOfInternships === ethSeasonOfInternships) &&
443+
(expertJobs === null ||
444+
(jlr.access === "protected") === expertJobs) &&
445445
(!query || matchesQuery) &&
446446
(!tagFilterList ||
447447
tags.filter(tag => tagFilterList.includes(slugify(tag.name))).length >

src/shared/entities/job-filter-configs.entity.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type RawJobFilters = {
4141
hacks?: string[] | null;
4242
token?: string[] | null;
4343
onboardIntoWeb3?: string[] | null;
44-
ethSeasonOfInternships?: string[] | null;
44+
expertJobs?: string[] | null;
4545
ecosystems?: string[] | null;
4646
organizations?: string[] | null;
4747
seniority?: string[] | null;
@@ -140,8 +140,8 @@ export class JobFilterConfigsEntity {
140140
),
141141
token: this.getSingleSelectPresets("token"),
142142
onboardIntoWeb3: this.getSingleSelectPresets("onboardIntoWeb3"),
143-
ethSeasonOfInternships: this.getSingleSelectPresets(
144-
"ethSeasonOfInternships",
143+
expertJobs: this.getSingleSelectPresets(
144+
"expertJobs",
145145
),
146146
order: this.getSingleSelectPresets("order"),
147147
orderBy: this.getSingleSelectPresets("orderBy"),

src/shared/interfaces/job-filter-configs.interface.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class JobFilterConfigs {
2424
audits: SingleSelectFilter.SingleSelectFilterType,
2525
token: SingleSelectFilter.SingleSelectFilterType,
2626
onboardIntoWeb3: SingleSelectFilter.SingleSelectFilterType,
27-
ethSeasonOfInternships: SingleSelectFilter.SingleSelectFilterType,
27+
expertJobs: SingleSelectFilter.SingleSelectFilterType,
2828
order: SingleSelectFilter.SingleSelectFilterType,
2929
seniority: MultiSelectFilter.MultiSelectFilterType,
3030
locations: MultiSelectFilter.MultiSelectFilterType,
@@ -86,7 +86,7 @@ export class JobFilterConfigs {
8686
@ApiProperty()
8787
onboardIntoWeb3: SingleSelectFilter;
8888
@ApiProperty()
89-
ethSeasonOfInternships: SingleSelectFilter;
89+
expertJobs: SingleSelectFilter;
9090
@ApiProperty()
9191
order: SingleSelectFilter;
9292
@ApiProperty()
@@ -111,7 +111,7 @@ export class JobFilterConfigs {
111111
ecosystems,
112112
classifications,
113113
onboardIntoWeb3,
114-
ethSeasonOfInternships,
114+
expertJobs,
115115
commitments,
116116
monthlyFees,
117117
fundingRounds,
@@ -136,7 +136,7 @@ export class JobFilterConfigs {
136136
this.seniority = seniority;
137137
this.locations = locations;
138138
this.onboardIntoWeb3 = onboardIntoWeb3;
139-
this.ethSeasonOfInternships = ethSeasonOfInternships;
139+
this.expertJobs = expertJobs;
140140
this.headcountEstimate = headcountEstimate;
141141
this.investors = investors;
142142
this.ecosystems = ecosystems;

src/shared/presets/job-filter-configs.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export const SINGLE_SELECT_OPTIONS = {
3030
{ label: "Web3 Beginner Friendly", value: true },
3131
{ label: "Not Web3 Beginner Friendly", value: false },
3232
],
33-
ethSeasonOfInternships: [
34-
{ label: "Eth Season of Internships", value: true },
35-
{ label: "Not Eth Season of Internships", value: false },
33+
expertJobs: [
34+
{ label: "Expert Jobs", value: true },
35+
{ label: "Not Expert Jobs", value: false },
3636
],
3737
order: [
3838
{ label: "A-Z", value: "asc" },
@@ -220,13 +220,13 @@ export const FILTER_CONFIG_PRESETS = {
220220
kind: FilterKind.SINGLE_SELECT,
221221
options: SINGLE_SELECT_OPTIONS.onboardIntoWeb3,
222222
},
223-
ethSeasonOfInternships: {
223+
expertJobs: {
224224
position: 22,
225-
label: "Eth Season of Internships",
225+
label: "Expert Jobs",
226226
show: true,
227-
googleAnalyticsEventName: "filter_joblist_eth_season_of_internships",
227+
googleAnalyticsEventName: "filter_joblist_expert_jobs",
228228
kind: FilterKind.SINGLE_SELECT,
229-
options: SINGLE_SELECT_OPTIONS.ethSeasonOfInternships,
229+
options: SINGLE_SELECT_OPTIONS.expertJobs,
230230
},
231231
orderBy: {
232232
position: 23,
@@ -287,7 +287,7 @@ export const FILTER_PARAM_KEY_PRESETS = {
287287
hacks: "hacks",
288288
token: "token",
289289
onboardIntoWeb3: "onboardIntoWeb3",
290-
ethSeasonOfInternships: "ethSeasonOfInternships",
290+
expertJobs: "expertJobs",
291291
order: "order",
292292
orderBy: "orderBy",
293293
};

src/shared/presets/public-api-schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ export const PUBLIC_API_SCHEMAS = {
13571357
onboardIntoWeb3: {
13581358
$ref: getSchemaPath(SingleSelectFilter),
13591359
},
1360-
ethSeasonOfInternships: {
1360+
expertJobs: {
13611361
$ref: getSchemaPath(SingleSelectFilter),
13621362
},
13631363
order: {

0 commit comments

Comments
 (0)