Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm

fix paths and verify it works via api

Changed files
+22 -2
constellation
+3 -1
constellation/src/server/mod.rs
···
};
let path = format!(".{path}");
+
let path_to_other = format!(".{}", query.path_to_other);
+
let paged = store
.get_many_to_many_counts(
&query.subject,
collection,
&path,
-
&query.path_to_other,
+
&path_to_other,
limit,
cursor_key,
&filter_dids,
+2
constellation/src/storage/rocks_store.rs
···
let after = after.map(|s| s.parse::<u64>().map(TargetId)).transpose()?;
let Some(target_id) = self.target_id_table.get_id_val(&self.db, &target_key)? else {
+
eprintln!("nothin doin for this target, {target_key:?}");
return Ok(Default::default());
};
···
.take(1)
.next()
else {
+
eprintln!("no forward match");
continue;
};
+1 -1
constellation/templates/get-backlinks.html.j2
···
{% extends "base.html.j2" %}
{% import "try-it-macros.html.j2" as try_it %}
-
{% block title %}Links{% endblock %}
+
{% block title %}Backlinks{% endblock %}
{% block description %}All {{ query.source }} records with links to {{ query.subject }}{% endblock %}
{% block content %}
+16
constellation/templates/get-many-to-many-counts.html.j2
···
+
{% extends "base.html.j2" %}
+
{% import "try-it-macros.html.j2" as try_it %}
+
+
{% block title %}Many to Many counts{% endblock %}
+
{% block description %}All {{ query.source }} records with links to {{ query.subject }}{% endblock %}
+
+
{% block content %}
+
+
(todo)
+
+
<details>
+
<summary>Raw JSON response</summary>
+
<pre class="code">{{ self|tojson }}</pre>
+
</details>
+
+
{% endblock %}