tangled
alpha
login
or
join now
microcosm.blue
/
microcosm-rs
65
fork
atom
Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
65
fork
atom
overview
issues
8
pulls
2
pipelines
fix paths and verify it works via api
bad-example.com
5 months ago
4dd21fa2
dddc7329
+22
-2
4 changed files
expand all
collapse all
unified
split
constellation
src
server
mod.rs
storage
rocks_store.rs
templates
get-backlinks.html.j2
get-many-to-many-counts.html.j2
+3
-1
constellation/src/server/mod.rs
···
293
};
294
let path = format!(".{path}");
295
0
0
296
let paged = store
297
.get_many_to_many_counts(
298
&query.subject,
299
collection,
300
&path,
301
-
&query.path_to_other,
302
limit,
303
cursor_key,
304
&filter_dids,
···
293
};
294
let path = format!(".{path}");
295
296
+
let path_to_other = format!(".{}", query.path_to_other);
297
+
298
let paged = store
299
.get_many_to_many_counts(
300
&query.subject,
301
collection,
302
&path,
303
+
&path_to_other,
304
limit,
305
cursor_key,
306
&filter_dids,
+2
constellation/src/storage/rocks_store.rs
···
959
let after = after.map(|s| s.parse::<u64>().map(TargetId)).transpose()?;
960
961
let Some(target_id) = self.target_id_table.get_id_val(&self.db, &target_key)? else {
0
962
return Ok(Default::default());
963
};
964
···
1019
.take(1)
1020
.next()
1021
else {
0
1022
continue;
1023
};
1024
···
959
let after = after.map(|s| s.parse::<u64>().map(TargetId)).transpose()?;
960
961
let Some(target_id) = self.target_id_table.get_id_val(&self.db, &target_key)? else {
962
+
eprintln!("nothin doin for this target, {target_key:?}");
963
return Ok(Default::default());
964
};
965
···
1020
.take(1)
1021
.next()
1022
else {
1023
+
eprintln!("no forward match");
1024
continue;
1025
};
1026
+1
-1
constellation/templates/get-backlinks.html.j2
···
1
{% extends "base.html.j2" %}
2
{% import "try-it-macros.html.j2" as try_it %}
3
4
-
{% block title %}Links{% endblock %}
5
{% block description %}All {{ query.source }} records with links to {{ query.subject }}{% endblock %}
6
7
{% block content %}
···
1
{% extends "base.html.j2" %}
2
{% import "try-it-macros.html.j2" as try_it %}
3
4
+
{% block title %}Backlinks{% endblock %}
5
{% block description %}All {{ query.source }} records with links to {{ query.subject }}{% endblock %}
6
7
{% block content %}
+16
constellation/templates/get-many-to-many-counts.html.j2
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{% extends "base.html.j2" %}
2
+
{% import "try-it-macros.html.j2" as try_it %}
3
+
4
+
{% block title %}Many to Many counts{% endblock %}
5
+
{% block description %}All {{ query.source }} records with links to {{ query.subject }}{% endblock %}
6
+
7
+
{% block content %}
8
+
9
+
(todo)
10
+
11
+
<details>
12
+
<summary>Raw JSON response</summary>
13
+
<pre class="code">{{ self|tojson }}</pre>
14
+
</details>
15
+
16
+
{% endblock %}