Merge branch 'dejal' into catalyst

This commit is contained in:
David Sinclair 2023-01-04 16:07:45 -06:00
commit 5af9a9602b
4 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"service": {
"name": "db-elasticsearch-staging",
"name": "db-elasticsearch",
"tags": [
"db"
],

View file

@ -363,7 +363,8 @@ def load_feeds(request):
'starred_counts': starred_counts,
'saved_searches': saved_searches,
'dashboard_rivers': dashboard_rivers,
'categories': categories
'categories': categories,
'share_ext_token': user.profile.secret_token,
}
return data

View file

@ -19,7 +19,7 @@ class Command(BaseCommand):
if not options['user']:
print("Missing user. Did you want to reindex everything? Use -R.")
return
print(options)
if re.match(r"([0-9]+)", options['user']):
user = User.objects.get(pk=int(options['user']))
else:

View file

@ -329,10 +329,10 @@ resource "digitalocean_droplet" "node-page" {
}
resource "digitalocean_droplet" "db-elasticsearch" {
count = 2
count = 1
image = var.droplet_os
# name = "db-elasticsearch"
name = contains([0], count.index) ? "db-elasticsearch" : "db-elasticsearch${count.index}"
name = "db-elasticsearch${count.index+1}"
region = var.droplet_region
size = var.elasticsearch_droplet_size
ssh_keys = [digitalocean_ssh_key.default.fingerprint]