(&mut self, view_id: &str, calculation_id: &str)
| 1085 | } |
| 1086 | |
| 1087 | pub fn remove_calculation(&mut self, view_id: &str, calculation_id: &str) { |
| 1088 | let mut txn = self.collab.transact_mut(); |
| 1089 | if let Ok(view_id) = self.body.parse_view_id(view_id) { |
| 1090 | self |
| 1091 | .body |
| 1092 | .views |
| 1093 | .update_database_view(&mut txn, &view_id, |update| { |
| 1094 | update.update_calculations(|txn, calculation_update| { |
| 1095 | if let Some(i) = calculation_update.index_by_id(txn, calculation_id) { |
| 1096 | calculation_update.remove(txn, i); |
| 1097 | } |
| 1098 | }); |
| 1099 | }); |
| 1100 | } |
| 1101 | } |
| 1102 | |
| 1103 | pub fn get_all_filters<T>(&self, view_id: &str) -> Vec<T> |
| 1104 | where |
nothing calls this directly
no test coverage detected