Skip to content

Commit

Permalink
fix external url issue + scale up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rohangpta committed Aug 31, 2023
1 parent f2b2adf commit 9707966
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions backend/clubs/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2603,8 +2603,13 @@ class ClubApplicationSerializer(ClubRouteMixin, serializers.ModelSerializer):
club = serializers.SlugRelatedField(slug_field="code", read_only=True)
updated_at = serializers.SerializerMethodField("get_updated_time", read_only=True)
club_image_url = serializers.SerializerMethodField("get_image_url", read_only=True)
external_url = serializers.SerializerMethodField("get_external_url")
active = serializers.SerializerMethodField("get_active", read_only=True)

def get_external_url(self, obj):
default_url = f"https://pennclubs.com/club/{obj.club.code}/application/{obj.pk}"
return obj.external_url if obj.external_url else default_url

def get_cycle(self, obj):
return obj.application_cycle.name if obj.application_cycle else obj.season

Expand Down
2 changes: 1 addition & 1 deletion k8s/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class MyChart extends PennLabsChart {
new DjangoApplication(this, 'django-wsgi', {
deployment: {
image: backendImage,
replicas: 2,
replicas: 3,
secret: clubsSecret,
env: [
{ name: 'REDIS_HOST', value: 'penn-clubs-redis' },
Expand Down

0 comments on commit 9707966

Please sign in to comment.